Jump to content

No error, not entry in DB...


osyrys14

Recommended Posts

Can anyone take a quick look at this and tell me what I'm missing... I've looked at it so much I'm lost.  (i'm not new, just stared too long and can't get my eyes to focus anymore on what I'm missing. 

 

	  <?php 
        $varname = $_POST['formname'];
	$varaddress = $_POST['formaddress'];
	$varemail = $_POST['formemail'];
	$varphone = $_POST['formphone'];
	$varbustype = $_POST['formtype'];
	$varmethod = $_POST['formmethod'];						

		$db = mysql_connect("localhost","private","private");
		if(!$db) die("Error connecting to MySQL database AGAIN...");
		mysql_select_db("table" ,$db);

		$sql = "INSERT INTO mailing_list (
		  listname,
		  listaddress,
		  listemail,
		  listphone,
		  listmethod
		  ) 
			VALUES (
						'$varname',
						'$varaddress', 
						'$varemail',
						'$varphone',
						'$varbustype',
						'$varmethod' )" ;
		mysql_query($sql);

		  ?>

The page processes properly without error, but nothing shows in the database... Thanks in advance to any help.

 

Osyrys

 

Link to comment
https://forums.phpfreaks.com/topic/236613-no-error-not-entry-in-db/
Share on other sites

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.