RE: [PHP-DB] get field content
| From: | Rick Emery | Date: | Mon, 29 Oct 2001 22:13:20 +0000 |
| Subject: | RE: [PHP-DB] get field content | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-13831@lists.php.net to get a copy of this message | ||
$query = "select ColumnName from tableName WHERE rowNumber =
$rowNumber,$db";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
$answer = $row['ColumnName'];
-----Original Message-----
From: phpnet@SeaPort6.com [mailto:phpnet@SeaPort6.com]
Sent: Monday, October 29, 2001 4:07 PM
To: PHP DataBase-List
Subject: [PHP-DB] get field content
Help!
I have drawn a blank..
I want to get the content of a field in a table where I know the
databaseName,tableName and columnName and the rowNumber.
Like:
$answer = mysqlCommand("select ColumnName from tableName WHERE rowNumber =
$rowNumber,$db)
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net