Jump to content


Problems with MySQL/php


1 reply to this topic

#1 demonix

    Young Padawan

  • Members
  • Pip
  • 26 posts

Posted 08 January 2006 - 07:31 PM

i get this error:

Quote

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/demonix/domains/shadoweffect.dynahosting.net/public_html/new_template/index.php on line 63

with this script:

<? 
include ("connect.php");
$result = mysql_query("select * FROM index");
while($r=mysql_fetch_array($result)) {

$message = $r["message"];
echo "$message";

} 
 ?>

the database is text, not null.
there IS an entry on the db.

#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 08 January 2006 - 08:55 PM

http://www.pixel2lif...showtopic=15974
http://www.pixel2lif...showtopic=15426

Same problems, please do a search next time.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users