[PHP] Must results from MySQL fetches always be an Array??

2002-01-25 Thread René Fournier
This is sort of a is there an easier/better way kind of question. No error or problem, but I'd like to know how others handle it. I'm fetching single elements of data from several tables, then piecing it together. Here's an example of one element I need to fetch: $series =

Re: [PHP] Must results from MySQL fetches always be an Array??

2002-01-25 Thread Mark Heintz PHP Mailing Lists
On Fri, 25 Jan 2002, [ISO-8859-1] René Fournier wrote: $series = mysql_fetch_array(mysql_query(SELECT key2 FROM models WHERE lang='$lang' AND recordname='$model',$db)); Now I realize that with this function $series will always be an array, even if it contains just one element (which it

Re: [PHP] Must results from MySQL fetches always be an Array??

2002-01-25 Thread daniel
This is sort of a is there an easier/better way kind of question. No error or problem, but I'd like to know how others handle it. I'm fetching single elements of data from several tables, then piecing it together. Here's an example of one element I need to fetch: $series =

Re: [PHP] Must results from MySQL fetches always be an Array??

2002-01-25 Thread hugh danaher
try $something=settype(mysql_result($variable,0),string); - Original Message - From: daniel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 25, 2002 12:25 PM Subject: Re: [PHP] Must results from MySQL fetches always be an Array?? This is sort of a is there an easier