Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. $timId = "" ;
  2.  
  3. $requete = $bdd->prepare('SELECT LAST(`timId`) FROM `timesheets` ');
  4. $requete->execute(array('timId'=> $_POST['timId'])) or die(print_r($requete->errorInfo()));
  5. $resultat = $requete->fetch();
  6. $timId = $resultat['timId'];
  7. echo($timId);
  8.  
  9. Use Order BY id Desc , Using limit clause you can achieve this
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement