Jump to content

UPDATE syntax issue


Skipjackrick

Recommended Posts

Am I missing something here?

 

 

 

 

<?php

$length = 2;
$world_record = 1;
$anglerId = 2;

      if ($length > $world_record) {
      //Update kayak man points
      $record_kmpoints = "UPDATE anglers 
            SET kayakman_points = kayakman_points + 5 
            WHERE anglerId=$anglerId";
      $wr_kmpoints = mysql_query($record_kmpoints) or exit(mysql_error());

      }
?>

Link to comment
https://forums.phpfreaks.com/topic/192683-update-syntax-issue/
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.