simple mysql while

mysql, php Add comments
<?
 $query = mysql_query("SELECT name FROM Table");
 while ($item = mysql_fetch_object($query)) {
    echo $item->name;
    echo "<br>";
 }
?>

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in