Hi,
I have a mySQL database and table named news. One field called "subject" which is set to "TEXT" type. EverytimeI add some symbols such as "@" or "'s", it gives me an error saying:
I have no idea on how t fix it. Anybody can give me some advice? Here's what I have for the query:
Thanks for your time. There is no Knowledge that is not power.
Age: 17
E-mail: projectnet01@yahoo.com
Company
not done yet) 
Status: Currently working with C++ for game developing. And making a musical band.
-Aaron
I have a mySQL database and table named news. One field called "subject" which is set to "TEXT" type. EverytimeI add some symbols such as "@" or "'s", it gives me an error saying:
Code:
Cannot execute statement!
You have an error in your SQL syntax near 's', '#', '1', 'Tue Oct 29 21:21:18 2002', 'October', '2002') ' at line 1
I have no idea on how t fix it. Anybody can give me some advice? Here's what I have for the query:
Code:
$sql = <<EOF;
INSERT INTO `news_index` (`nid`, `subject`, `body`, `author`, `post_time`, `month`, `year`) VALUES ('', '$news_subject', '$news_body', '$uid', '$post_time', '$month', '$year')
EOF
my $sth = $dbh->prepare("$sql");
$sth->execute or &header("Cannot execute statement!<br>".$sth->errstr);
Thanks for your time. There is no Knowledge that is not power.
Age: 17
E-mail: projectnet01@yahoo.com
Company


Status: Currently working with C++ for game developing. And making a musical band.
-Aaron