$db = mysql_select_db("pinehead", $con) or die(mysql_error());
$sql= "select * from awating where id='$id'";
$result = mysql_db_query($con, $sql);
$row = mysql_fetch_array($result);
$sql = 'insert into articles values ("' . $id . '", "' . $row["author"] . '", "' . $row["subject"] . '", "' . $row["date"] . '", "' . $row["1"] . '")';
mysql_db_query($con, $sql,);
print mysql_error($con);
$sql = "delete from subarts where subid='$subid'";
mysql_db_query($con, $sql,);
print "Added $id";
This is my code..
$row = mysql_fetch_array($result);
$sql = 'insert into articles values ("' . $id . '", "' . $row["author"] . '", "' . $row["subject"] . '", "' . $row["date"] . '", "' . $row["1"] . '")'; this is the lines i'm getting a parse error on.
Parse error: parse error, unexpected ')' in /home/pinehead/public_html/add.php on line 15
that is the error i'm getting.
Sorry to be so blunt, just really ticked off at this, and on top of all that i dont' know if the code even works hehe.
Thank you for your help
-PiNeHeAd