jini01 Posted February 20, 2007 Share Posted February 20, 2007 while ($file = $handle->read()) { if (strstr($file,".xml")) { if (!mysql_fetch_array(exec_sql("SELECT * FROM MAPXML WHERE MYFEEDURL LIKE '%{$file}%'"))){ echo "\n{$file}"; } } } Call to undefined function exec_sql() on line 18 Link to comment https://forums.phpfreaks.com/topic/39322-error/ Share on other sites More sharing options...
JBS103 Posted February 20, 2007 Share Posted February 20, 2007 It is what it says... Did you mean to use, mysql_query()? Link to comment https://forums.phpfreaks.com/topic/39322-error/#findComment-189610 Share on other sites More sharing options...
jini01 Posted February 20, 2007 Author Share Posted February 20, 2007 No. Its a valid statement Link to comment https://forums.phpfreaks.com/topic/39322-error/#findComment-189616 Share on other sites More sharing options...
skali Posted February 20, 2007 Share Posted February 20, 2007 1- Have you defined exec_sql() function in your code? 2- If it is in an external file have you included the file properly? 3- If it is in a class are you properly calling the function? Link to comment https://forums.phpfreaks.com/topic/39322-error/#findComment-189660 Share on other sites More sharing options...
Balmung-San Posted February 20, 2007 Share Posted February 20, 2007 As well, calling it exec_sql would be bad naming. Every SQL based function that I've heard of that uses exec in the name does not return a result set. So if somebody else were to pick up your code they'd wonder why the exec is return a result set. Link to comment https://forums.phpfreaks.com/topic/39322-error/#findComment-189663 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.