RE: [PHP] show a field in php file

From: Date: Mon, 18 Jul 2005 18:49:22 +0000
Subject: RE: [PHP] show a field in php file
Groups: php.general 
Request: Send a blank email to php-general+get-218896@lists.php.net to get a copy of this message
[snip] ...a lot of stuff from George.... [/snip] George, We appreciate that you are asking a lot of questions and hope that you become a proficient user of PHP. We do recommend that you spend some time with a tutorial or two (Google is your friend) and a little time with the manual. Many of your questions are answwered and often there is more than one way to do things. Thank you. To show a field from a query you have to a. get the data from a query $myQuery = "SELECT foo FROM table "; if(!($myResult = mysql_query($myQuery, $myConnection))){ echo mysql_error . "\n"; exit(); } while($myRow = mysql_fetch_array($myResult)){ echo $myRow['foo'] . "<br>\n"; } b. display the data

« previous php.general (#218896) next »