MySQL query fail in CI and PHP but not with MySQL client |
[eluser]Unknown[/eluser]
Hello obiron2, Thanks for replying. Quote:put quotes round your SQL string, otherwise PHP sees the first semicolon and thinks it is the end of the PHP command. I've already done that. And put also the sql statement on one line. I don't want to use procedures because of portability. Also, I think you have a misunderstanding about the way MySQL use temporary table. Quote:Temporary tables differ from normal tables in that temporary tables exist onlyhttp://dev.mysql.com/tech-resources/arti...n-ch5.html (p264 of the referred PDF) And... Quote:A MySQL temporary table can have any legal name, even the same name as an existing regular table. In this case it will mask the regular table. http://www.xaprb.com/blog/2006/03/26/tem...-in-mysql/ Cheers -Emmanuel |
Messages In This Thread |
MySQL query fail in CI and PHP but not with MySQL client - by El Forum - 02-04-2009, 10:49 PM
MySQL query fail in CI and PHP but not with MySQL client - by El Forum - 02-05-2009, 03:37 AM
MySQL query fail in CI and PHP but not with MySQL client - by El Forum - 02-07-2009, 08:43 AM
MySQL query fail in CI and PHP but not with MySQL client - by El Forum - 02-07-2009, 08:50 PM
MySQL query fail in CI and PHP but not with MySQL client - by El Forum - 02-07-2009, 09:19 PM
|