MySQL query fail in CI and PHP but not with MySQL client |
[eluser]cwt137[/eluser]
Could it be a classic case of sql injection? Make sure you escape your values. Parameterize your sql statements (aka Query Bindings) http://ellislab.com/codeigniter/user-gui...eries.html. I do it to all my queries. |
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
|