Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $username="root";
- $password="pass";
- $database="lillehammer";
- $regnr=$_POST['reg_nr'];
- $mobile=$_POST['mobile_number'];
- $phone=$_POST['phone_number'];
- $company=$_POST['company_name'];
- $first=$_POST['first_name'];
- $last=$_POST['last_name'];
- $adress=$_POST['adres'];
- $postal=$_POST['postal_code'];
- $notes=$_POST['notes'];
- $email=$_POST['email_addres'];
- mysql_connect(localhost,$username,$password);
- @mysql_select_db($database) or die("Nie znaleziono bazy danych");
- $query = "INSERT INTO customers VALUES ('','$regnr','$mobile','$phone','$company','$first','$last','$adress','$postal','$notes','$email')";
- mysql_query($query) or die("Nie dziaĆa");
- mysql_close();
- ?>
Add Comment
Please, Sign In to add comment