Need help with looping

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

Post Reply
Smackie
Forum Contributor
Posts: 302
Joined: Sat Jan 29, 2005 2:33 pm

Need help with looping

Post 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.... :|
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

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 »

??????
take a look at the mysql_query() documentation example code
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Post Reply