Failed Insert
-
Am a novice, Attempting to insert data into a custom table.
<?php $link = mysqli_connect("localhost", "h8888", "88888", "h8888"); if($link === false){ die("ERROR: Could not connect. " . mysqli_connect_error()); } $ID = $_POST('ID'); $FirstName = $_POST['FirstName']; $Lastname = $_POST('Lastname'); $Address1 = $_POST('Address1'); $SQL = "INSERT INTO AAUW_MEMBERS(ID,FirstName,Lastname,Address1) VALUES ('$ID','$FirstName','$Lastname',$Address1')"; if(!mysql_query($link,$SQL)) ( echo "Not Inserted'; ) else ( echo 'Inserted'; ) get header(); ?>
This is a test site.
insert.php is in the child folder, under functions.php, this connection has been tested.
<form method="post",action="insert.php">
when i click save, nothing happens, no error messages,debug in config.php is set to ‘true’, no data appears in the table in phpMyAdmin no error in finding the file.
Thank you for any help.
ClaudetteThe page I need help with: [log in to see the link]
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Failed Insert’ is closed to new replies.