PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm trying to create a loop that will list all the information within a part of a mysql table, while including a form that will allow them to change the value in a field and save those changes to the table.
I'm not sure about how to post this information after the user has entered the changes.
Excellent.
That brings me to ask, the form 'abc.php' would be where the values for 'case' would go to be posted? Is there something I can use within it to modify the 'case' column in my 'inventory4071' table per the users input?
$case = $_REQUEST['case'];
// I am filtering the values which i got. Its optional. You can do this, if you want to do. Its recommended by me though.
/***********************************************/
$case = addslashes($case);
$case = htmlentities($case);
// Identifier = your identifier.
/***********************************************/
if(mysql_query("UPDATE inventory4071 SET case='$case' WHERE identifier=identifier LIMIT 1;")) {
echo "success";
}else{
echo "failed";
}