Welcome Guest, Not a member yet? Register   Sign In
error in SQL syntax?
#15

[eluser]Narkboy[/eluser]
[quote author="anna16" date="1290363649"]by the way can you guys explain I'm having 3 errors,
http://coder9.com/ci172x/index.php/membe...er_account

I'm confused which error should i fix first?

thanks in advanced.[/quote]

Error 1 - you're trying to do something with part of an object, but you're actually doing it to the object itself.

Error 2 - I'm guessing you have either whitespace before a <?php> tage somewhere, or it's because of 3.

Error 3 - The SQL server is being asked to look for a row in the user table that has - ->post('email') - as an email address. You've got a typo in your db call.

First - rewrite your db query to work properly - I'd suggest that you use Active Record. It makes life infinatly easier when you get your head around it.

Second - in membership.php on line 19 you'll find an echo or a string-related function that needs a string param. You're passing it the object rather than a variable within the object.

Smile


Messages In This Thread
error in SQL syntax? - by El Forum - 11-21-2010, 05:49 AM
error in SQL syntax? - by El Forum - 11-21-2010, 05:51 AM
error in SQL syntax? - by El Forum - 11-21-2010, 05:58 AM
error in SQL syntax? - by El Forum - 11-21-2010, 06:02 AM
error in SQL syntax? - by El Forum - 11-21-2010, 06:09 AM
error in SQL syntax? - by El Forum - 11-21-2010, 06:12 AM
error in SQL syntax? - by El Forum - 11-21-2010, 06:16 AM
error in SQL syntax? - by El Forum - 11-21-2010, 06:17 AM
error in SQL syntax? - by El Forum - 11-21-2010, 06:20 AM
error in SQL syntax? - by El Forum - 11-21-2010, 06:20 AM
error in SQL syntax? - by El Forum - 11-21-2010, 06:22 AM
error in SQL syntax? - by El Forum - 11-21-2010, 06:24 AM
error in SQL syntax? - by El Forum - 11-21-2010, 06:25 AM
error in SQL syntax? - by El Forum - 11-21-2010, 06:25 AM
error in SQL syntax? - by El Forum - 11-21-2010, 06:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB