Possible Duplicate:
mysql_fetch_array() expects parameter 1 to be resource, boolean given in select
EDITED! Okay, I have like 3 Errors on my website. These are the errors that pop up. Connection Info:
$dbhost = '127.0.0.1';
$dbdatabase = 'bans';
$dbuser = 'dsfhalsfdh';
$dbpassword = 'lfhdjklfdf';
$webname = 'InsanityRP.Com'
This are the errors:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/klayplex/public_html/insanityrp.com/bans/index.php on line 41
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /home/klayplex/public_html/insanityrp.com/bans/index.php on line 68
My Code Goes In Order:
$result = mysql_fetch_array(mysql_query($query));
Then
while($row=mysql_fetch_assoc($result)){
Anything look weird? I don`t know PHP at all, so if you can, please tell me what to edit or just give me the code to copy and paste.