hoo know i understand what you had ment before! great and thank you a lot. However, i tried this query and it displayed me an error message again :
$query_insert = "INSERT INTO posts(subject,post,userid,catid,date) VALUES ('$subject','$post',1,$catid,'$idate')";
mysql_query($query_insert) or die("wrong query!!!");