Great, but take a moment to reconsider your design, lest little Bobby
Tables try to sign up for your service one day and corrupt your
database: http://xkcd.com/327/

>From what I remember about PHP, the magic quotes thing may save you, but
it's ugly to rely on that. Take a look at the Wikipedia article as a
start: http://en.wikipedia.org/wiki/SQL_injection

-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-----Original Message-----
From: xaero <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: [flexcoders] Re: A problem in the "Adobe PHP RIA SDK"
Date: Mon, 09 Jun 2008 01:33:59 -0000

--- In [email protected], Sherif Abdou <[EMAIL PROTECTED]> wrote:
>
> get the error and do error.toString(); and tell me what you see
> 
> 

Many thanks for your good idea~~~!
I'v fix the problem.
It seems to be the SQL query error.
Original query was :
$query = "INSERT INTO users VALUES ('','$name', '$addr')";

I change it like this:
$query = "INSERT INTO users (`username`, `emailaddress`) VALUES
('".$name."', '".$addr."')";

And it works!
I think it because the `users` table contains an auto_increment field
`userid`




 


Reply via email to