The id column is auto increment. I want the "rank" column to have the same value as the newly generated auto increment value from the "id" column. (eg. say the next auto increment value is 999... I want the rank to equal this too)
Can I do this in one query? OR do I have to run an additional query to get the auto increment value before
$query = "INSERT INTO $table1(id,name,rank)
VALUES('','bob','999')";