PHP problems. Help?
Posted on December 06, 2006 at 15:16
Hey guys! I am having PHP/MySQL problems. I know there are a lot of you here who develop sites using the above, so dont you hide away!
I have a lil problemo...
Ill line out the problem for you. I run a local server on my PC. Everything works perfectly fine. If I use a simple script like this:
echo "Yo, welcome to Shotbeak Games";
It works fine. Now I come to the point where I want to include MySQL. Ive run the MySQL Command Line Client to create a database called "shotbeak" and added a table "News" + a field "news".
Now I want to connect to MySQL of course with this:
$mysqli = mysqli_connect("localhost","root","password","shotbeak");
echo "It failed.";
echo "It worked";
echo "It wont even parse this";
But you see, it doesnt go pass the $mysqli connection. Why? I know this might be a bit vague, but I have no idea why this happens... Everything works fine, but it doesnt want to connect properly...
Dev - Stricter rating rules. Prevent user from rating again