note 15207 deleted from function.mysql-db-name by jimw

From: Date: Fri, 16 Aug 2002 03:08:36 +0000
Subject: note 15207 deleted from function.mysql-db-name by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-35120@lists.php.net to get a copy of this message
Hmmm, something me and a co-worker noticed. It seems that this function can ALSO be used to get the value of the first field selected at position $row in the result resource. For example: $result = mysql_query("SELECT first_name, last_name, id_number FROM employees"); $first_name = mysql_db_name($result, 3); The variable $first_name will be assigned the first_name of the person that was returned in the fourth slot of the result source (since indices start at 0). Whether or not this function was intended to be used this way, we're not sure. --Adam

« previous php.notes (#35120) next »