[PHP] [php] nomenclature
Hi, I'm writing an academic paper detailing how my bibliographic database works. $myinput = mysql_query($sql) or die(print font color=red.mysql_error()./font); while ($mydata = mysql_fetch_object($myinput)) { } What is the usual, normal, standard nomenclature for $myinput and $mydata? How do people usually declare/name/type $myinput and $mydata?, usually speaking? I want to pick something normal they might encounter in their travels at www.php.net etc. Thanks, John compcanlit.ca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [php] nomenclature
$result = mysql_query($sql) ; ^ while ($rec = mysql_fetch_object($results)) ^ On Saturday 22 March 2003 11:56 pm, you wrote: Hi, I'm writing an academic paper detailing how my bibliographic database works. $myinput = mysql_query($sql) or die(print font color=red.mysql_error()./font); while ($mydata = mysql_fetch_object($myinput)) { } What is the usual, normal, standard nomenclature for $myinput and $mydata? How do people usually declare/name/type $myinput and $mydata?, usually speaking? I want to pick something normal they might encounter in their travels at www.php.net etc. Thanks, John compcanlit.ca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [php] nomenclature
On Sunday 23 March 2003 13:13, John Hicks wrote: $result = mysql_query($sql) ; ^ while ($rec = mysql_fetch_object($results)) ^ I think $row is more commonly used than $rec. And you have an extra 's' on the second $result. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* broad-mindedness, n: The result of flattening high-mindedness out. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [php] nomenclature
Thanks jason, john. http://www.php.net/manual/en/function.mysql-fetch-object.php $row and $result Jason Wong wrote: On Sunday 23 March 2003 13:13, John Hicks wrote: $result = mysql_query($sql) ; ^ while ($rec = mysql_fetch_object($results)) ^ I think $row is more commonly used than $rec. And you have an extra 's' on the second $result. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php