Hi, I hope someone can help me on this.
I'm working on a Shockwave application, whereby a user can submit a username and password. It will then query a .php3 document and checks the database whether such a user exists.
Anyway this is what I have so far in Lingo:
on mouseUp
user= member("txtUsername".text
password = member("txtPassword".text
infoList = ["phpuser": user, "phppassword": password]
netID = postNetTexT(" infoList)
end
And in php I have:
$query = "SELECT * FROM mydb WHERE user LIKE #phpuser# AND password LIKE #phppassword#";
$result = mysql_query ($query)
or die ("Query failed"
I seem to always get "query failed" because I think the problem of passing the data over from Lingo to the php3.
It works fine when I do a simple a "select * FROM mydb" or
"select * FROM mydb where user LIKE "yourname"".
Maybe someone can help me and point out what am I doing wrong?
Cheers,
Isk.
I'm working on a Shockwave application, whereby a user can submit a username and password. It will then query a .php3 document and checks the database whether such a user exists.
Anyway this is what I have so far in Lingo:
on mouseUp
user= member("txtUsername".text
password = member("txtPassword".text
infoList = ["phpuser": user, "phppassword": password]
netID = postNetTexT(" infoList)
end
And in php I have:
$query = "SELECT * FROM mydb WHERE user LIKE #phpuser# AND password LIKE #phppassword#";
$result = mysql_query ($query)
or die ("Query failed"
I seem to always get "query failed" because I think the problem of passing the data over from Lingo to the php3.
It works fine when I do a simple a "select * FROM mydb" or
"select * FROM mydb where user LIKE "yourname"".
Maybe someone can help me and point out what am I doing wrong?
Cheers,
Isk.