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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php