How to get the Last Inserted ID in Table in Cakephp?
Here, ModelName is your table model name.
Just Call this after the Insert SQL in the Cakephp.
$last_inserted_id=$this-> ModelName-> getLastInsertId()
$last_inserted_id=$this-> ModelName-> getLastInsertId()
Here, In below code, user can enter two numbers to find the odd and even numbers between them. The number must be in between 1000 and 3000...
No comments:
Post a Comment