Hey i am aware mysql is now deprecated but for example purposes i am unable to get this query to work. No errors are displayed but it doesn't work. A previous questioned helped with protection but the query is the issue i believe with this.
The query:
if (isset($_POST['update'])){
$UpdateQuery = "UPDATE tbl_venues SET venue_id='$_POST[id]', venue_name='$_POST[name]', venue_description ='$_POST[desc]', venue_address ='$_POST[address]', venue_type ='$_POST[type]' WHERE venue_id='$_POST[hidden]'";
mysql_query($UpdateQuery, $connect);
Data example:
echo"<form action=venuelist.php method=post>";
echo "<td><input type='text' name='name' value='" . $record['venue_name'] . "'> </td>";
echo "</form>";
Please note there are multiple of the above all with names corresponding to the query.
Any help appreciated, thanks.