mysql question

From: Date: Sun, 10 Feb 2008 17:49:17 +0000
Subject: mysql question
Groups: php.general 
Request: Send a blank email to php-general+get-269040@lists.php.net to get a copy of this message
i have this functuon: public function select_one($sql) { $this->last_query = $sql; $r = mysql_query($sql); if (!$r) { $this->last_error = mysql_error(); return false; } if (mysql_num_rows($r) != 1) { return false; } $ret = mysql_result($r, 0); mysql_free_result($r); if ($this->auto_slashes) return stripslashes($ret); else return $ret; } what is $ret, an array? if so how can i access the individual rows in it?

« previous php.general (#269040) next »