Expand my Community achievements bar.

Adding Row To MySQL From Flex

Avatar

Level 1
I am creating a user login system using Flex, and I am having
trouble getting it to add a new row when someone tries to register.
The username and password is sent to the database and a new row is
created, but the row that was created is blank. Therefore, when the
person tries to login, the username and password isn't recognized.
I think the problem is somewhere in my Flex code and not the
database or PHP. Here is the code that calls that database:



<mx:HTTPService id="registerNewUser"
result="checkRegistration(event)" showBusyCursor="true"
method="POST"

url="
http://www.rockwaveguitar.com/siteAdmin/register2.php"
useProxy="false">

<mx:request xmlns="">

<username>

{username.text}

</username>

<password>

{password.text}

</password>

</mx:request>

</mx:HTTPService>
1 Reply

Avatar

Former Community Member
My suggestion is to use a debugger and check where the
variable get's lost. With PHP I used to use xdebug which seems to
work well. But that is mu current suggestion to try to figure out
what is really going on.



Ries