Current location: Hot Scripts Forums » Programming Languages » PHP » Please help me Undefined Syntax is showing at my comment box

Please help me Undefined Syntax is showing at my comment box

  #1 (permalink)  
New Member
Join Date: Feb 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Please help me Undefined Syntax is showing at my comment box

I'm new in PHP I just need to store the comment into my database before accepting it to be post in
my site.

Here is my code:


$insert=mysql_query("INSERT INTO comment (name,comment) VALUES ('$name','$comment')");
echo "Please fill out all the fields";

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<form action="index.php" method="POST">
<tr><td>Name: </td><td><input type="text" name="name" /></td></tr>
<tr><td colspan="2">Comment: </td></tr>
<tr><td colspan="2"><textarea name="comment"></textarea></td></tr>
<tr><td colspan="2"><input type="submit" name="submit" value="Comment" /></td></tr>
Attached Images
File Type: png Untitled.png (37.1 KB, 4 views)
Reply With Quote

Featured Marketplace Scripts (view more)



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Comment box like youtube naissa JavaScript 1 06-06-08 12:55 PM
Syntax Error Nikas Database 4 05-15-08 10:48 AM
Sending a DB query on a html link pcinfoman PHP 141 07-25-07 12:41 PM
No error message... stormshadow PHP 3 12-11-06 06:31 PM
Shout box, comment box, or search script. Need help to find all! Spreegem Script Requests 1 05-29-04 09:45 PM

All times are GMT -5. The time now is 11:04 AM.
vBulletin® Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.