Personal tools

Views

Talk:Flex Framework:tutorials:flex2 and php

From Adobe Labs

There seems to be an error in the line:

$Query = sprintf(“INSERT INTO users VALUES (, '%s', ‘%s’)”, quote_smart($_POST[“username”], quote_smart($_POST[“emailaddress”])";

it would be nice if someone could correct it.


Just a guess, but how about:

$Query = sprintf(“INSERT INTO users VALUES (, '%s', ‘%s’)”, quote_smart($_POST[“username”], quote_smart($_POST[“emailaddress”]);

I haven't had time to look at the tutorial, so I pasted it here...


Now for me its OK.

$Query = sprintf("INSERT INTO users VALUES (,%s, %s)", quote_smart($_POST["username"]), quote_smart($_POST["emailaddress"]));

jf.sal from Portugal

Retrieved from "http://labs.adobe.com/wiki/index.php/Talk:Flex_Framework:tutorials:flex2_and_php"