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
Post a Comment