Jump to content

update table join


dflow

Recommended Posts

i wrote this script

 

for some reason it's not executing after submitting

<?php $ProposalID = $_GET['PropID'];
$con = mysql_pconnect($hostname_international, $username_international, $password_international);
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
if (isset($_POST['submit'])) {
mysql_select_db("international", $con);
$query="UPDATE proposals, contact_form
     SET contact_form.StatusID =6, proposals.StatusID=6
       WHERE proposals.RequestID = contact_form.RequestID
        AND proposals.ProposalID = '$ProposalID'";


$update_tables_action = mysql_query($query) or trigger_error(mysql_error(),E_USER_ERROR);
echo "POST: <BR>";

}
?>

Link to comment
https://forums.phpfreaks.com/topic/201507-update-table-join/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.