After I insert values into a new row, I need the results from that query.
mysql_query()
only returns true or false when doing a INSERT command.
The only solution I can think of for something like this is by creating a temporary number/id in PHP and inserting it into its own column. Then fetching that row it with a second command.
However it may be possible that my random id is not random enough to accidentally select the wrong row when the script is executed multiple times.
在 mysql_query ()
调用 调用 < code> 时,是否有方法执行 INSERT 命令, 以便返回创建的行?