Parse error: parse error, unexpected T_LOGICAL_OR in /home/iemc/public_html/nukesilo/news_add.php on line 13Im getting this error when i test it.
Parse error: parse error, unexpected T_LOGICAL_OR in /home/iemc/public_html/nukesilo/news_add.php on line 13Im getting this error when i test it.
if($submit) {
$dbconnection=mysql_connect("localhost", "username", "password");
or die (!$dbconnection)
{
exit("MYSQL Connection Attempt Failed: " . $dbconnection);
}
mysql_select_db("my_database",$dbconnection);
$sql = "INSERT INTO news (news_title,news_text) VALUES ('$news_title','$news_text')";
$result = mysql_query($sql);
echo "News Entered Succesfuly.n";
} else{
?>[/quote]
Hows this looks? Would this write the news_title and the news_text to the mysql?ieatmonkeychow: Mo-Do - Super GutAHAHAHAAH
01:13, 22/07
Avatar ieatmonkeychow: #GUT GUT SUPER GUT I LIKE SUPER GUT#
01:13, 22/07
Avatar ieatmonkeychow: gut = goot
02:18, 22/07
Avatar psycosquirrel: goot sounds like boot
02:26, 22/07
Avatar Unbreakable: and boots are for goats, like a gooting goat
02:26, 22/07
Avatar RabidMonkey: gooting goat guts! What is this song IEMC!?
if($submit) {code.
$dbconnection=mysql_connect("localhost", "username", "password");
if (!$dbconnection)
{
exit("MYSQL Connection Attempt Failed: " . $dbconnection);
}
mysql_select_db("my_database", $dbconnection); [/quote]
I realise this is just the connection to the mysql, but as of right now, im lost. I kinda have some what of an idea of what to put to take the forms and send it to the database, but i need a little help.Erm, i havent been on TWHL on another PC for ages,Stupid m0p, tricks are for kids!
* Allow previewing your posts before posting themOr just an edit button