marco792005 wrote:
> good morning to all, I have a problem with dreamweaver
cs3 and l' integration
> with easyphp (especially with my sql) of continuation
bringing back l' error
> that appears to me: Error of sintax in query the SQL
near ' @yahoo.it AND pwd='
> 190679' ' line 1
The error message says that it's a problem with the SQL
syntax. MySQL
syntax error messages always refer to "near ...", which means
the error
is immediately before that point. Looking at the rest of the
message,
the problem lies with the value for user. That is, indeed,
confirmed by
this line of code:
> $LoginRS__query=sprintf("SELECT `user`, pwd, userGroup
FROM
> user_tecnicaldeko WHERE `user`=%s AND pwd=%s",
> GetSQLValueString($loginUsername, "-1"),
GetSQLValueString($password,
> "text"));
I have no idea how this happened, because that line of code
should have
been created by Dreamweaver, but the "-1" is completely
wrong. The code
should look like this:
$LoginRS__query=sprintf("SELECT `user`, pwd, userGroup FROM
user_tecnicaldeko WHERE `user`=%s AND pwd=%s",
GetSQLValueString($loginUsername, "text"),
GetSQLValueString($password,
"text"));
--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/