I have a wesite with godaddy.com they provide myPHPadmin, the database and table were created easily.
Now, I’m trying to make a form that the end result is to have my form entered data be placed into my databases (gallinks) table (Links).
I have this and get no errors, however the information isn’t showing up in myPHPadmin or even when I export the information in .CSV.
[php]
$username=“";
$password="”;
$database=“gallinks”;
$hostname="*************";
$name=$_POST[‘name’];
$date=$_POST[‘date’];
$url=$_POST[‘url’];
$desc=$_POST[‘desc’];
$pic=$_POST[‘pics’];
mysql_connect($hostname,$username,$password);
@mysql_select_db($database) or die(“This did not work, eh”);
$query=“INSERT INTO links
(name
, date
, url
, desc
, pic
) VALUES (’’,’$name’, ‘$date’, ‘$url’, ‘$desc’, ‘$pic’)”;
mysql_query($query);
mysql_close();
[/php]
Besides the opening and closing php tags, can anyone see if what could be wrong?
Thanks
Admin Edit: Added PHP tags for readability. Please see http://phphelp.com/guidelines.php for posting guidelines.