Actionscript. You need to be using sendAndLoad to send data back to the database.
PHP. You must first find, or select the row from the database...
//get info from database
$select = "SELECT * FROM `tableName` WHERE `id` = '$id'";
$result = mysql_query($select) or die(mysql_error());
//how many rows were found?
$numresults = mysql_num_rows($result);
//if no rows were found do this
if($numresults==0) {
} else {
//else if a row was found, update it
$update = "UPDATE `tableName` SET `name_txt`='$name_txt' WHERE `id` = '$id'";
mysql_query($update) or die(mysql_error());
Main Topics
Browse All Topics





by: sam928Posted on 2009-09-20 at 20:44:23ID: 25380188
continuation....... I understand the concept of 'Saving/Sending data' to the database...i have this already structured,,, it is where I add a new record to the database... BUT it does NOT allow me to update an entry.
That is my question, how do i select an entry from the database and update it?