Page 1 of 1

Need help with looping

Posted: Sat Apr 16, 2005 3:59 pm
by Smackie
I need some help making this code loop....

Code: Select all

<?php
include'config.php';
$sql = mysql_query("select * from home") or die(MySQL_Error());
$row = mysql_fetch_assoc($sql);
echo $row['message'];
?>

Thank you
Smackie


feyd | excessive punctuation marks in titles.... :|

Posted: Sat Apr 16, 2005 4:03 pm
by feyd
take a look at the mysql_query() documentation example code.

Posted: Sat Apr 16, 2005 4:22 pm
by Smackie
??????
take a look at the mysql_query() documentation example code

Posted: Sat Apr 16, 2005 4:32 pm
by John Cartwright