On 07 April 2004 15:56, Andy B wrote: > i have this query set: > $EditQuery="select * from $EventsTable where Id='$edit'"; > $query=mysql_query($EditQuery)||die(mysql_error());
Don't use || for this, use or -- they have different precedence, and it *matters*. > //later in the code i have this: > while($old=mysql_fetch_array($query)){ > //do stuff > } Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php