Jump to content

Neuro Virus

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Neuro Virus's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Okay, I changed it up a bit. I thought this would work but it doesn't. Why won't it save the comments :( [code]<? mysql_connect("localhost","****","****"); mysql_select_db("book"); $user = $_POST[user]; $comment = $_POST[comment]; $sql="INSERT INTO comment (user,comment)     VALUES ('$user','$comment')"; mysql_query($sql); ?> </head> <body> <? $user = $_POST["user"]; $comment = $_POST["comment"]; echo "$user" . "<br>" . "$comment" . "<br><br>"; ?>[/code]
  2. [code]<? $user = $_POST["user"]; $comment = $_POST["comment"]; echo "$user" . "<br>" . "$comment" . "<br><br>"; ?>[/code] Everythign works with no problems except one thing. The code doesnt save the input. In other words when I refresh my comment page it is blank. Nothing is saved. How do I fix this?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.