print a column
Posted: Sun Aug 29, 2004 8:42 am
Hi, I want to print each element of a column of a mysql database.
For exemple to print the first element could we do like this:
Thanks
For exemple to print the first element could we do like this:
Code: Select all
$result = mysql_query( "SELECT username FROM users" );
$row = mysql_fetch_array($result);
print $rowї1];