mysql question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux