Re: mysql question

From: Date: Thu, 14 Feb 2008 20:48:22 +0000
Subject: Re: mysql question
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-269322@lists.php.net to get a copy of this message
On Sun, February 10, 2008 11:52 am, Per Jessen wrote: > nihilism machine wrote: > >> $ret = mysql_result($r, 0); >> mysql_free_result($r); >> if ($this->auto_slashes) return stripslashes($ret); >> else return $ret; >> } >> >> >> what is $ret, an array? > > No, it's a mysql result object. No, it's a single field value from the database. $r is the result object. http://php.net/mysql_result -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So?

« previous php.general (#269322) next »