You are here: RE: [PHP] Why this doesn't work ? « PHP « IT news, forums, messages
RE: [PHP] Why this doesn't work ?

Posted by Jim Moseby on 10/24/05 20:50

>
> 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"
>

Apparently, $login does not contain the text you think it does. Either echo
$login to see, or echo $query to see what is actually being passed to mysql.

JM

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация