Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $timId = "" ;
- $requete = $bdd->prepare('SELECT LAST(`timId`) FROM `timesheets` ');
- $requete->execute(array('timId'=> $_POST['timId'])) or die(print_r($requete->errorInfo()));
- $resultat = $requete->fetch();
- $timId = $resultat['timId'];
- echo($timId);
- Use Order BY id Desc , Using limit clause you can achieve this
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement