$ID;
echo $ID; //This returns: *string(1) "5"*

$NewID = $ID + 1;
echo $NewID; //This returns: *6*

//If I input the $NewID manually as a string (for example '6', *it works
fine* and updates the db correctly)
*$query1="INSERT INTO
Table"."(ID,name,surname)"."VALUES('6','newName','newSurname');"; *

//However if I try to use the $NewID variable from above *it does't
work....*

*$query1="INSERT INTO Table"."(ID,name,surname)"."VALUES(\' ' . $NewID .
'\','newName','newSurname');"; *

Any idea about the right syntax to use for $NewID, please?

Cheers

Edmondo
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to