Advertisement
Guest User

Untitled

a guest
Dec 17th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.93 KB | None | 0 0
  1. <?php
  2.  include('include/config.inc.php');
  3.  include('include/menu.php');
  4.  session_start();
  5.  
  6.     $sql_certificato = "UPDATE r005 SET stato_validazione = '2'  where stato_validazione is null";
  7.     $result_certificato = mysql_query($sql_certificato);
  8.  
  9.    
  10.  
  11.     // while ($row_certificato = mysql_fetch_assoc($result_certificato)) {
  12.        
  13.     //  echo $id_operatore = $row_certificato['id_operatore'];
  14.     //  echo "<br>";
  15.  
  16.     //  $select_last = "SELECT * FROM r005 where id_operatore = '$id_operatore' order by  numero_r005 desc";
  17.     //  $result_last = mysql_query($select_last);
  18.     //  $row_last = mysql_fetch_assoc($result_last);
  19.     //  echo $num_rows = mysql_num_rows($row_last);
  20.  
  21.     //  echo $row_last['numero_r005'];
  22.     //  $id_r005 = $row_last['id_r005'];
  23.     //  echo "<br>";
  24.  
  25.     //  //if($num_rows > 1)
  26.  
  27.     //  echo $update = "UPDATE r005 SET stato_validazione = '1' where id_r005 = '$id_r005' ";
  28.     //  $result_r005 = mysql_query($update);
  29.  
  30.     // }
  31.  
  32.  
  33.  
  34.  
  35. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement