hey guys rite i have created a website and i am trying to insert a indivual piece of data into 1 column of my phpmyadmin page table. But i am doing a TV show website and just creating a easy and basic forumn.. i am trying to insert a reply code which when you enter the details in the reply box and sumit it insert it into ID number 1 of column reply.. at the moment all it does it insert it into the end of another ID which it is creating automatically can anyone help me .. i have attached my table on to this message so you can see what the table is like!!
here is my code?
<?php
if (isset($_POST['submitted'])) {
$posttopic = $_POST['POSTTOPIC'];
$postdeatils =$_POST['POSTDEATILS'];
$postauthor=$_POST['POSTAUTHOR'];
$sqlinsert = "INSERT INTO forumposts (`POSTTOPIC`, `POSTDEATILS`, `POSTAUTHOR`) VALUES('$posttopic', '$postdeatils', '$postauthor')";
$query = mysql_query($sqlinsert);
if (!$query) {
echo "error inserting new record" . mysql_error();
}
} // end of mani if statment
//$newrecord ="1 record added to the database";
?>