hi all - can anyone help with the following -
I am unable to upload any data to my database -
I can connect successfully as i have changed the password, database name and got the error's i was expecting.
but for some reason, the data just doesn't seem to want to get to my database...???/
Any pointers would be very helpful,
<?
include('autoconfig.php');
$tbl_name=temp_members_db;
// Random confirmation code
$confirm_code=md5(uniqid(rand()));
// values sent from form
$name=$_POST['name'];
$email=$_POST['email'];
$password=$_POST['password'];
$country=$_POST['country'];
$city=$_POST['city'];
$mobnum=$_POST['mobnum'];
$mobnet=$_POST['mobnet'];
$mobpro=$_POST['mobpro'];
$atype=$_POST['atype'];
$datetime=date('l jS F Y h:i:s'); //create date time
$uipa = $_SERVER["REMOTE_ADDR"];
$ref = $_SERVER['HTTP_REFERER'];
$browser = $_SERVER['HTTP_USER_AGENT'];
// Insert data into database
$sql= "INSERT INTO $tbl_name(confirm_code, name, email, password, country, city, mobnum, mobnet, mobpro, automotive, datetime, uipa, ref, browser)VALUES('$confirm_code', '$name', '$email', '$password', '$country', '$city', '$mobnum', '$mobnet', '$mobpro', '$atype', '$datetime', '$uipa', '$ref', '$browser')";
$result=mysql_query($sql);