Hi,
New web app with CF4 new things to learn....
I create a form with db loader action and with a where statement .
I could capture the value of a column (autoindex autoincrement field in the db) as cf_id.
But I have the value of the first row in the table ("1").
I couldn't understand how to use insertid to obtain the last value of the field in the table (like mysql last_insert_id).
I have make a request in where statement as:
then capture the data with an echo that call $lastid.
But it couldn't pass the data.
Is it possible to have some hints about the sintax that I've to use?
Thanks in advance.
bye
fede
New web app with CF4 new things to learn....
I create a form with db loader action and with a where statement .
I could capture the value of a column (autoindex autoincrement field in the db) as cf_id.
But I have the value of the first row in the table ("1").
I couldn't understand how to use insertid to obtain the last value of the field in the table (like mysql last_insert_id).
I have make a request in where statement as:
$lastid=$database->insertid();
then capture the data with an echo that call $lastid.
But it couldn't pass the data.
Is it possible to have some hints about the sintax that I've to use?
Thanks in advance.
bye
fede