Getting the last mysql query

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lanlife
    New Member
    • Oct 2007
    • 5

    Getting the last mysql query

    Hello everyone
    Please, I want to know how i can get the last mysql query issued into the mysql server with php.
  • realin
    Contributor
    • Feb 2007
    • 254

    #2
    Originally posted by lanlife
    Hello everyone
    Please, I want to know how i can get the last mysql query issued into the mysql server with php.
    you can get the last ID number using mysql_insert_id () or you can get the number of affected rows..

    i guess you cant get the query u passed.. rest wait for others to reply

    cheers !!

    Comment

    Working...