Hi there this is my script in php:
<?php
$connection = mysql_connect("localhost", "xxxxxxx", "xxxxxxx") or die("no connection possible");
mysql_select_db("flaxcrea_flash", $connection) or die ("Kan geen tabel openen");
$name = "pieter";
$email = "skynet.be";
$insert_data = "
INSERT INTO messages (naam, email, message, website, phone, buddy, date, time, country, ip)
VALUES ('$name', '$email', '$bericht', '$site', '$phone', '$buddy', '$date', '$time', '$location', '$ip')";
//echo("$name, $email, $bericht, $site, $phone, $buddy, $date, $time, $location, $ip");
mysql_query($insert_data) or die("Can't insert the new row ");
mysql_close($connection);
?>
if I execute the file in my browser a new line will be added in the database but, if I try to exec it from flash with loadvars, it doesn’t works
this is what I’ve already tried:
this.loadVariablesNum("addToDataBase.php", "POST");
this.loadVariablesNum("addToDataBase.php");
Do I do something wrong?