/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php //create db connection if(!$connection) { } // select a dtabase to use if(!$db_select) { } ?> <body> $result = mysql_query("SELECT * FROM tablename", $connection); while ($row = mysql_fetch_array($result)) { echo $row["rownamehere"]." ".$row["rownamehere"]."<br/>"; } ?> </body> <?php ?>