Re: syntax error (stumped)

From: Date: Fri, 05 Dec 2008 06:31:28 +0000
Subject: Re: syntax error (stumped)
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-284143@lists.php.net to get a copy of this message
Its begining to look like this code was written for a newer sql.... The sysop came up with an older php file that fixxed this issue.... Samples enclosed. //the file I been working on all days - relevant lines only" $filename = sqlesc($filename); $res = do_mysql_query("SELECT * FROM dox WHERE filename=$filename") or sqlerr(); $arr = mysql_fetch_assoc($res); //end //The swapped out code that works - relevant lines only: $filename = sqlesc($filename); $res = mysql_query("SELECT * FROM dox WHERE filename=$filename") or sqlerr(); $arr = mysql_fetch_assoc($res); //end Thats all she wrote... instead of do_mysql_query , mysql_query instead. Thanks for all your help.. I do however have another issue.. but thats another thread. Sailor chris smith-9 wrote: > > ddg2sailor wrote: >> I have been looking at this code all night and at one point I drew the >> same >> conclusion. But I havent been able to find it.... Il beg the moderators >> indulgence here.. But I really do need to add this code which calls the >> other code as a user hits a link. > > Find the file where do_mysql_query is defined and include it. > > It is not a native php function - someone made it up. Search your code > for the function. > > -- > Postgresql & php tutorials > http://www.designmagick.com/ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- View this message in context: http://www.nabble.com/syntax-error-%28stumped%29-tp20846197p20848455.html Sent from the PHP - General mailing list archive at Nabble.com.

« previous php.general (#284143) next »