Hey,
I need help with this code please
The line with [THIS LINE] is giving the error below (Obviously [THIS LINE] and [END OF LINE] arn't on the actual page :pPHP Code:else
{
$id = $mybb->user["uid"];
$news = strip_tags($_POST["news"]);
$games = strip_tags($_POST["games"]);
$vids = strip_tags($_POST["vids"]);
$imgs = strip_tags($_POST["imgs"]);
$favs = strip_tags($_POST["favs"]);
$forum = strip_tags($_POST["forum"]);
$stats = strip_tags($_POST["stats"]);
$notes = strip_tags($_POST["notes"]);
$dbh = mysql_connect ("localhost", "user", "pass") or die
("I cannot connect to the database because: " . mysql_error());
mysql_select_db ("database");
[THIS LINE] mysql_query("INSERT INTO `database`.`table` (`users_homepage_id`, `users_homepage_news`, `users_homepage_games`, `users_homepage_vids`, `users_homepage_imgs`, `users_homepage_favs`, `users_homepage_forum`, `users_homepage_notes`, `users_homepage_stats`) VALUES('$id','$news','$games','$vids','$imgs','$favs','$forum','$stats','notes')") or die(mysql_error()); [END OF LINE]
echo "<span style=\"background-color: yellow\">\"Sbumitted</span>";
}
Anyone got any ideas why :S I can't work it outParse error: syntax error, unexpected T_VARIABLE
Thanks in advance
Joe![]()






Reply With Quote




