When there is request from user i get parameter x,y,flag and sent. I insert it into table2.
$sql1 = "INSERT INTO table2
(id,sent,pcount,ncount,flag)
VALUES
('".$_POST['id']."','".$_POST['sent']."',' $x ','$y','$flag')";
When data is inserted, below that I am showing chart, which takes inserted values x and y to show the chart.
So how on button click event I can get the values inserted in last insert operation??
Is it possible that I can create view with last row x and y values from table table2.
Table table2 has auto increment column.