I want to get the maximum id of row data. In my table first column is id then firstname. this is the sql command I used to get the max(id) of row data and insert firstname in max(id) row. but it is not working
<?PHP $maxid=mysql_query("insert into test(firstname) values ('$sym') where id =max('id') ;?>