note 38395 deleted from function.sqlite-field-name by nlopess
| From: | nlopess@php.net | Date: | Fri, 19 Dec 2003 09:08:31 +0000 |
| Subject: | note 38395 deleted from function.sqlite-field-name by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-62218@lists.php.net to get a copy of this message | ||
Note Submitter: tribe_le@hotmail.com
----
Just like mysql one.
$q = sqlite_query ($db, 'select * from characters');
$c = sqlite_field_name ($q, 0);
The 0 is the numerical value of the field. starting from 0 so if the db table was
Name Address State
as the columns then you would have 0=name 1=address 2=state.
Easy as that.