Jump to content

Missing something to update


Jay2391

Recommended Posts

I have this condiction an I get the ...

Registration Closed part so i know that $tfull == TRUE is working

now i want to get status to update on the table from 1 to 2...

what am i missing ...

if($tfull == TRUE){
      echo "<br>Registration Closed";
      $staus_2 = 2;
      $change = "UPDATE $tablet SET (status=\"$status_2\") WHERE (tourney_id=\"$tourney_id\")";
 
}
Link to comment
https://forums.phpfreaks.com/topic/36210-missing-something-to-update/
Share on other sites

try this
[code]
<?php
f($tfull == TRUE){
      echo "
Registration Closed";
      $status_2 = 2;
      $change = "UPDATE $tablet SET status='$status_2' WHERE tourney_id='$tourney_id'"; 
mysql_query($change) or die ("Cannot Update Table". mysql_error());
                 
}
?>
[/code]

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.