Hello, i have a small problem. i want to add some values in a database.
the values are take from flash.
i have this php script:
<?php
$pic = $_POST['img'];
$text = $_POST['desc'];
$url = $_POST['link'];
$db = mysql_connect("localhost","root","");
mysql_select_db("mydatabase");
$insert_query = "INSERT INTO `flash` ( `img` , `text`, `link` ) VALUES ('$pic') , ('$text') , ( '$url' ) ";
?>
And in flash i have 3 input text fields, that have the Var: img, desc, link. And a button that has this actionscript:
[AS]
send_btn.onPress = function () {
getURL(“writedb2.php”, _blank, “POST”);
}
[/AS]
But when i type something in flash and click send button, nothing happens in my database.
the structure of the data base is:
4 fields: ID, IMG, TEXT and LINK
ID - INT, auto_increment, PRIMARY
IMG, TEXT, LINK - VARCHARF, 256
Do you have suggestion how to resolve this, that works?
Thank you.