Advertisement
Guest User

Untitled

a guest
Feb 9th, 2017
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. $sql_ins = "INSERT INTO user_links (username, user_id, link_id, checked, last_clicked)
  2. VALUES ('$username', '$u_id', '$id', 'yes', '$date_time')";
  3.  
  4. if (mysqli_query($conn, $sql_ins)) {
  5.  
  6. if ( $thistime - $date_time >=24) {
  7.    $sqlt_ins=mysql_query("then insert new user_links");
  8. }
  9. else {echo "something error";}
  10.  
  11. } else {
  12.   header('Location: ad-view.php?viewed');
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement