Re: flash/php problem

From: Date: Thu, 09 Mar 2006 06:46:06 +0000
Subject: Re: flash/php problem
References: 1 2 3 4 5  Groups: php.db 
Request: Send a blank email to php-db+get-41420@lists.php.net to get a copy of this message
On second thoughts you probably better off with load variables. Flash: var info:String = "YoMama"; var id:Number = 12; loadVariables("http://myserver.com/my_db_update_page.php?id="+id+"&info="+info+"", this); 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); if (!mysql_errno()) { print 'result="good"'; exit; } } print 'result="bad"'; ?> The function for checking the result is in the flash manual: Actionscript Language Reference >> loadVariables() Tony

« previous php.db (#41420) next »