Re: flash/php problem

From: Date: Thu, 09 Mar 2006 06:23:22 +0000
Subject: Re: flash/php problem
References: 1 2 3 4 5  Groups: php.db 
Request: Send a blank email to php-db+get-41419@lists.php.net to get a copy of this message
how can i update my DB through Flash, using PHP.
The easy way... Flash: var info:String = "YoMama"; var id:Number = 12; getURL("http://myserver.com/my_db_update_page.php", "_self", "GET"); PHP [my_db_update_page.php]: <?php include_once('db_connection_script.php'); if ($_GET['info'] && $_GET['id']){ $id = addslashes($_GET['id']); $info = addslashes($_GET['info']); $sql = "update table_name set info='$info' where id='$id'"; mysql_query($sql); } ?> This won't tell you if there has been an error during the update. If you need confirmation use AMFPHP. Tony

« previous php.db (#41419) next »