Jonanafm;
I've added the code to my scripts but it doesn't seem to work. I guess I didn't explain it properly. Below is the code which needs to be edited.
add.php
<form method="post">
<input name="Text1" type="text"><input name="example" type="submit" value="submit"></form>
add.php displays the form. It then loads update.php which injects the data from the form into the database. update.php is listed below:
update.php
<?php
include("../config.php");
mysql_connect("$database_host", "$database_username", "$database_password") or die(mysql_error());
$connect = mysql_select_db("$database_name") or die(mysql_error());
mysql_select_db("$database_name", $connect);
$sql="INSERT INTO table (example)
VALUES
('$_POST[example]')";
mysql_close($connect)
?>
Now I'm not sure where to put the data you provided. I've conducted a little trial and error but came up empty handed. Please help!
Thanks in Advance!
- Michael