Guest User

Untitled

a guest
Jul 3rd, 2014
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. <?php
  2.  
  3. require_once 'session.php';
  4. require_once '../include/connect.php';
  5.  
  6. for ($i = 0; $i < $_SESSION['file']; $i++)
  7. {
  8.     if(!mysqli_query($db, "UPDATE `imagenes` SET `descripcion`= '".$_POST['descripcion']."'  WHERE `tid`= '".$_SESSION['lid']."'"))
  9.            
  10.     {
  11.         echo mysqli_error($db);
  12.     }
  13.     else
  14.     {
  15.         echo "success!";
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment