mysql - Getting a Variable From a Database via an SQL Command -


here code:

$result1 = mysqli_query($con, "insert third (id2, language, divid, point, ce, datetime, ip)  values ('$id2', '$language', '$new_divid', 0, 'b', now(), '$ipaddress')");  

in code (mysql) add new line database , didn't add id1 column it, cause id1 auto-increment in table - adds id1 automatically.

now trying tp id1 back, inside same sql command don't want use php again , again. possible?

note: saw output inserted.id1 didn't understand , whether can use it. (i saw in question)


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -