Hi,
Im trying to update a Mysql table, but the following code does not seem to do it its not throwing up anu error messages either:
<code>
$LandlordID=$_REQUEST['id'];
if ($_POST['submit'] == "Update")
{
$query_update = "UPDATE landlord SET password = '" . $_POST['password'] . "', mobile
= '" . $_POST['mobile'] . "' WHERE userID ='$LandlordID'";
$result_update = mysql_query($query_update) or die(mysql_error());
$query = "SELECT * FROM landlord WHERE userID='$LandlordID'";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);
?>
</code>
Is there any obvious error??
Im trying to update a Mysql table, but the following code does not seem to do it its not throwing up anu error messages either:
<code>
$LandlordID=$_REQUEST['id'];
if ($_POST['submit'] == "Update")
{
$query_update = "UPDATE landlord SET password = '" . $_POST['password'] . "', mobile
= '" . $_POST['mobile'] . "' WHERE userID ='$LandlordID'";
$result_update = mysql_query($query_update) or die(mysql_error());
$query = "SELECT * FROM landlord WHERE userID='$LandlordID'";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);
?>
</code>
Is there any obvious error??