Hi All Im havin trouble usin flex. What Im tryin to do is just update mySql using flex.
This must be easy but not for me... if you guys are havin time to waste for me, plz help me out here. here is my code: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:HTTPService id="update_password" result="Alert()" showBusyCursor="true" method="POST" url="http://localhost/xampp/rh.php" useProxy="false"> <mx:request xmlns=""> <username> {username.text} </username> <password> {password.text} </password> </mx:request> </mx:HTTPService> <mx:Label x="10" y="10" text="Username:" id="label1"/> <mx:TextInput x="10" y="36" id="username"/> <mx:Label x="10" y="66" text="Password:" id="label2"/> <mx:TextInput x="10" y="92" id="password"/> <mx:Button x="10" y="122" label="Submit" id="Submit" click="update_password.send();"/> </mx:Panel> </mx:Application> PHP CODE <?php $con = mysqli_connect("localhost", "root", "", "operationdb1"); mysqli_query($con,"set names 'utf8'"); $username = mysql_real_escape_string($_POST["username"]); $password = mysql_real_escape_string($_POST["password"]); $Query = "UPDATE users SET password = '$password' WHERE username = '$username'"; $Result = mysqli_query($con, $Query ); ?>

