john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

dbselectall

<?php
include 'dbinfo.php';
include 'dbconnect.php';

echo "<br>\n";

$result = mysql_query('SELECT * FROM bookmarks') or die(mysql_error());

while ($row = mysql_fetch_array ($result))
{
    echo "<a href=\"" . $row['url'] . "\">" . $row['name'] . ", " . $row['url'] . "</a><br>\n";
}

mysql_close($dbconn);
?>

  • « dbshowdbtables
  • dbinsert »

Published

Feb 6, 2010

Category

web

~27 words

Tags

  • dbselectall 1
  • web 56