Quantcast
Channel: Microsoft Drivers for PHP for SQL Server forum
Viewing all articles
Browse latest Browse all 391

how to update a table record using php to sqlsrv

$
0
0

   function addActiveGuest($ip, $time){
 $config = $this->getConfigs();
      if(!$config['TRACK_VISITORS']) return;
      $sql =  $this->connection->prepare("REPLACE INTO ".TBL_ACTIVE_GUESTS." VALUES ('$ip', '$time')");
 $sql->execute();
      $this->calcNumActiveGuests();
 $time = timestamp;
   }

is the equiv of what i need in mysql i cannot figure this out i have about 4 hours on this already.


Viewing all articles
Browse latest Browse all 391

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>