Jump to content

Why is my text box not inserting data into the MYSQL database?


noisyscanner

Recommended Posts

My form handler:

<?php

mysql_connect("localhost","user","pass");
mysql_select_db("db");

mysql_query("INSERT INTO userpage
              (`wmsg`)
			  VALUES
			  ('$_POST[msg]')") or die(mysql_error());
?>

I submit the form but when I check phpmyadmin it has inserted blank info.

There has got to be something wrong here.

Please help.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.