so i have this: mysql_query("INSERT INTO..."); I was wondering after you've inserte开发者_Go百科d if you could echo out the id of the column you have inserted, or should i SELECT and that all around again?
You can use this function: mysql_insert_id() - Gets the ID generated in the last query
mysql_query("INSERT INTO mytable (product) values ('kossu')");
printf("Last inserted record has id %d\n", mysql_insert_id());
More info here
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论