note 24047 deleted from function.mysql-fetch-row by dams
| From: | dams@php.net | Date: | Mon, 05 Aug 2002 20:08:42 +0000 |
| Subject: | note 24047 deleted from function.mysql-fetch-row by dams | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-34325@lists.php.net to get a copy of this message | ||
i would like to note that the following works well, except the html formating needs some work :)
<?php
$db=mysql_connect("localhost","username","password");
$result=mysql_db_query("database","SELECT * from table_name");
$rowcount=mysql_num_rows($result);
while($ar=mysql_fetch_row($result)){
for($i=0;$i<count($ar);$i++){
echo($ar[$i]);
echo(">br<");
}
}
mysql_close($db);
?>
reverse the >br< for your break