Displaying information
Posted: Tue Nov 22, 2005 7:18 pm
I was wondering what the exact syntax for selecting information from a database and then displaying that? Any help would be great.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$result = mysql_query("select * from myTable")
or die(mysql_error());
while($row = mysql_fetch_assoc($result))
{
echo $row['somefieldfromtable'];
}