> $request=$_POST["request"];
> $result=mysql_query($request, $db);
> if ($result) echo tableToXml($result);
>
> ...where /request/ is POSTed from the flash and looks like this:
>
> SELECT * FROM login WHERE username="testuser" AND p***word="testp***"
You are aware that everyone could send any query (like DROP DATABASE
etc.) to your PHP page? I hope you check your input
>
> Strangely, it seems that even tho there aren't any "testuser" and "testp***"
> in the database, $result is not returned as false.
True. the function returns a resource if successful. Use
mysql_fetch_array() to get the rows.
Best regards
--
Willem Bogaerts
Application smith
Kratz B.V.
http://www.kratz.nl/