Mam tu problem...
PHP ****,
SQL http://pastebin.com/dLdCU02Sweb:
http://hammerstudio.co.nf/request/vsetko ide az na databazu, objednavka sa okonci ale v nej nic.
moze mi niekto poradit?
Kód:
<?php
$db_spojenie = mysql_connect("x","x","x");
$db = mysql_select_db("x", $db_spojenie);
if (!$db_spojenie) {
die('Could not connect: ' . mysql_error());
}
$meno = $_POST['name'];
$email = $_POST['email'];
$vek = $_POST['age'];
$krajina = $_POST['country'];
$paypal = $_POST['paypal'];
$napad = $_POST['idea'];
$vyber = $_POST['select'];
$vyber2 = $_POST['select2'];
if($meno == false || $email == false || $vek == false || $krajina == false || $paypal == false || $napad == false || $vyber == false || $vyber2 == false){
echo "<center><blink><font color=\"#FF0000\">You have not entered all the necessary data, please try again.</font></blink></center>\n";
}
else{
$db_spojenie = mysql_connect("x","x","x");
$db = mysql_select_db("x", $db_spojenie);
$db_prikaz = mysql_query("INSERT INTO order (name, age, email, country, paypal, idea, select, select2) VALUES ('$meno', '$email', '$vek', '$krajina', '$paypal', '$napad', '$vyber', '$vyber2')");
echo "<center><font color=\"#8000FF\">You have successfully sent order.</font></center>\n";
}
?>
//radsej som ti link na php vymazal, mas tam pristupove udaje k db (stenley)