|
Posted by Jordan Miller on 10/24/05 20:50
why don't you just echo your $query to see if it is coming out
correctly, before even trying to mess with mysql_query()? I think you
should be able to see the problem from there.
Jordan
On Oct 24, 2005, at 12:44 PM, Mário Gamito wrote:
> Hi,
>
>
>
>> Make this line instead
>> $result = mysql_query($query) or die(mysql_error() . " with the
>> query $query";
>> and you'll likely see the error.
>>
>>
>
> Here it goes:
>
> "You have an error in your SQL syntax; check the manual that
> corresponds to your MySQL server version for the right syntax to
> use near '(login) FROM formacao WHERE login = 'a'' at line 1"
>
> Regards,
> Mário Gamito
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>
[Back to original message]
|