Alright.. I set up my database, the cmdlines work and all.
But when I use the PHP functions to connect, nothing happens…
I’m not sure if it worked or not..
[code=php]@mysql_connect($host, $user, $pass)
or die(“Unable to connect to server”);
Like when I do that nothing happens. Even when I input invalid data. How do I check if I successfully logged onto the database through PHP?
EDIT:
Well, it seems like I can’t even get MySQL to work with PHP 5. I followed all the directions online and people having the same problem. I even typed
“php -m” in console and see that mysql extension is loaded… but for some reason, there still exist a fatal error of undefined function mysql_connect().
FIXED:
Oh my goodness… I had the php.ini file path directory all wrong in the httpd.conf in apache… duh.
-Pizzaman