error in SQL syntax? |
[eluser]flaky[/eluser]
I'm assuming the second error is happening due to the third one. The first error I have no clue what it is without seeing some code.
[eluser]InsiteFX[/eluser]
The first ERROR, the rest usally are from the first. InsiteFX
[eluser]anna16[/eluser]
@flaky here are the codes, controller: site.php Code: <?php model: membership.php Code: <?php
[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. |
Welcome Guest, Not a member yet? Register Sign In |