Im just trying to fix this query to look resemble the bottom query.
My table looks like this
uname
ucomment
ip
time
id
imagecat
$Add = mysql_db_query ($dbname, "INSERT INTO COMMENT VALUES ('',trim('$news'),DATE_ADD(NOW(), INTERVAL '$adjusted' SECOND))");
$Add = "INSERT INTO $table VALUES('$uname','$ucomment','$ip','$time','','$imagecat')";
if ($Submit == "Add")
{
$ucomment = nl2br($ucomment);
// Time offsetting
$time = $hrdiff * 60 * 60;
if ($ahead=="+")
{
$Add = mysql_db_query ($dbname, "INSERT INTO COMMENT VALUES ('',trim('$news'),DATE_ADD(NOW(), INTERVAL '$adjusted' SECOND))");
}
else
{
$Add = mysql_db_query ($dbname, "INSERT INTO COMMENT VALUES ('',trim('$news'),DATE_ADD(NOW(), INTERVAL '$adjusted' SECOND))");
}
$action="";
Thats how it is now. Im trying to add more infromation to the query and add a few more options in the table.