[PHP] accessing a mysql column by number

2002-03-27 Thread Phil Schwarzmann

Is there a way to access a column in Mysql just by using a number?
 
Like if you had three columns called column1, column2, and
column3 and I wanted to access column3 just by using the number 3
 
Thanks!
Phil



RE: [PHP] accessing a mysql column by number

2002-03-27 Thread Rick Emery

$row = mysql_fetch_row($result);
$val1 = $row[0];
$val2= $row[1];
$val3 = $row[2];

-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 10:51 AM
To: [EMAIL PROTECTED]
Subject: [PHP] accessing a mysql column by number


Is there a way to access a column in Mysql just by using a number?
 
Like if you had three columns called column1, column2, and
column3 and I wanted to access column3 just by using the number 3
 
Thanks!
Phil

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