Thread
:
Databases
View Single Post
#
3
10-02-2004, 02:38 PM
PHP-Largo
Unregistered
Posts: n/a
<?php
$sql = mysql_connect("host","username","password");
mysql_select_db("Db name",$sql);
$result=mysql_query("SELECT * FROM tablename");
//pull it out
while($myrow = mysql_fetch_array($result)) {
printf("$myrow[somename]");
}
?>
PHP-Largo