-
Php problem
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/icehabbo/public_html/index.php on line 11
Code:
<?
$host = "localhost";
$dbuser = "icehabbo_Usersystem";
$dbpwd = "*removed*";
$db = "icehabbo_Usersystem";
$connect = mysql_pconnect($host, $dbuser, $dbpwd);
if(!$connect) {
echo("Could not connect to database...");
} else {
$select = mysql_select_db($db);
}
?>
-
Make sure you added your user to the database in mySQL databases :)
-
-
Did you make sure you created a database?
EDIT: Your also forgetting to add <?PHP :P
<?php
$dbhost = 'localhost';
$dbuser = 'fbdfgfbdn';
$dbpass = 'ngfngfnf';
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error try again lulz);
$dbname = 'nameofdb here';
mysql_select_db($dbname);
?>
Try that :)
You were also using wrong codes ;)
-
Why don't you show use line 11?
Just showing us your configuration file isn't going to help. From what I can see there is not a mysql_fetch_array on that page :)
-
-
He's got no chance of installing it correctly LOL
-
-
By that he means
Press down 10 time's, then copy and paste it here.
-
And in the index.php file :)