your error is on the previous line to this code, global.
If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.
Register Today on DNForum IT'S FREE!The error:
Code:Parse error: parse error, unexpected T_VARIABLE
The Code:
PHP Code:$add_query = "INSERT INTO articles VALUES ('','".$title."','now()','".$article."')";
mysql_query($add_query);
Im overlooking something.. i know it.. but what?
The *one thing* necessary for ParkingSite profits
your error is on the previous line to this code, global.
Heres the full code mike:
There error is apparently on Line #7 (made bold)PHP Code:<?php
if(isset($_GET['add']) && ($_GET['add']=='true')){
$title = $_POST['title'];
$article = $_POST['article']
[b]$add_query = "INSERT INTO articles VALUES ('','".$title."','now()','".$article."')";[/b]
mysql_query($add_query);
mysql_close();
echo 'The Article: <b>'.$title.'</b> has been added to the database.';
}
?>
The *one thing* necessary for ParkingSite profits
$article = $_POST['article']
Needs a semicolon at the end.
LMAO.
I knew it was something simple I was overlooking.
(here i am saying to myself.. T_VARIABLE = missing semi-colon - but im not missing one)
lol
cheers.
The *one thing* necessary for ParkingSite profits
Bookmarks