PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
Smackie
Forum Contributor
Posts: 302 Joined: Sat Jan 29, 2005 2:33 pm
Post
by Smackie » Sat Apr 16, 2005 3:59 pm
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....
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Sat Apr 16, 2005 4:03 pm
take a look at the mysql_query() documentation example code.
Smackie
Forum Contributor
Posts: 302 Joined: Sat Jan 29, 2005 2:33 pm
Post
by Smackie » Sat Apr 16, 2005 4:22 pm
??????
take a look at the mysql_query() documentation example code