while( $row = mysql_fetch_array( $recordset ) ) { $var1 = $row["event_id"] ; $var2 = $row["event_title"] ; $var3 = $row["event_date"] ; }
Don't forget that what you get with mysql_fetch_array() is just a array where the indexes are just the name of the columns. Un saludo "Phil Ewington" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 000a01c1dc8b$a8d7e2d0$bdff0350@lithium">news:000a01c1dc8b$a8d7e2d0$bdff0350@lithium... > Hi All, > > I am new to PHP and am having a bit of trouble. I have a recordset using... > > $events = mysql_fetch_array($recordset); > > this drags in 3 columns from my table... > > event_id, event_title, event_date > > I want to search the recordset for a given date, if found I want to be able > to reference event_id & event_title from the row. I am using PHP 4.01. > > TIA > > Phil Ewington. > > --- > P.S. If there are any ColdFusion developers on this list, what is the PHP > equivalent of a structure? > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php