Hi!
1/ I want to read a field in last record. How can I know which one
or
How can I recognize what is the last id number into its autoincrement field?
(It is not possible with mysql_insert_id() in PHP
or LAST_INSERT_ID() in mySQL
because they return a status of MY ACTIONS and a current connection)
2/ Can I create a query like this
SELECT aa,ss,dd from tbl WHERE MAX(id)
or
I have to make 2 queries
SELECT MAX(id) FROM tbl
+
SELECT aa,ss,dd from tbl WHERE id=upper_find_value
3/ Can I execute more of one query from PHP with one command?
Thanks!
1/ I want to read a field in last record. How can I know which one
or
How can I recognize what is the last id number into its autoincrement field?
(It is not possible with mysql_insert_id() in PHP
or LAST_INSERT_ID() in mySQL
because they return a status of MY ACTIONS and a current connection)
2/ Can I create a query like this
SELECT aa,ss,dd from tbl WHERE MAX(id)
or
I have to make 2 queries
SELECT MAX(id) FROM tbl
+
SELECT aa,ss,dd from tbl WHERE id=upper_find_value
3/ Can I execute more of one query from PHP with one command?
Thanks!
Comment