09.03.2013, 09:34
Quote:
Seems like you did not quite understand me. I said RETURN last insert id. Not just use it. I am not completely stupid.
Let me give you an example of what I need. Код:
stock foo() { mysql_query(...); ... return mysql_insert_id(); } main() { printf("Last insert ID: %d", foo()); } --- Yeah I know the code makes no sense. But that is just an example. I use returns in more complex scripts. I want everything organized and good. This threaded-only stuff just makes me write bad, disorganized code. |