Advertisement
Guest User

Untitled

a guest
Oct 7th, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <?php
  2. session_start();
  3. ini_set('display_errors',1);
  4. ini_set('display_startup_errors',1);
  5. error_reporting(-1);
  6.  
  7. include_once ('connect.php');
  8. if(isset($_POST['call'])){
  9. $c = preg_replace('#[^a-z ]#i', '', $_POST['call']);
  10. echo $c;
  11.  
  12.  
  13.  
  14.  
  15. $stmt = $db->prepare("UPDATE tracker SET que_id = :value ");
  16. $stmt->bindParam(':value', $que_id);
  17.  
  18. // insert one row
  19. $que_id = 3;
  20.  
  21. $stmt->execute();
  22. //$que_id = mysql_insert_id();
  23. $que_id++;
  24. echo $que_id;
  25.  
  26. }
  27.  
  28.  
  29.  
  30. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement