I really hope you can help. I'm VERY new to php and I'm having trouble getting info to "insert" into my database. I have database created and I can insert manually in phpmyadmin, but not using php. I'm using:
$con = mysql_connect("localhost","xxxxxxxxx","xxxxxxx")
or die ("didn't work");// this works ok, cuz I run by itself and get check message at end
mysql_select_db("fitforli_database",$con);//this also works ok
//below is what won't work, I've tried with and without the MySQL_query command. do I need to use quotation marks throughout?
mysql_query (INSERT INTO `fitforli_database`.`gym` (`id`, `fname`, `lname`, `address`, `city`, `state`, `phone`, `email`,
`gender`, `contact`, `contact#`, `relation`, `plan`)
VALUES (null, "test","test","test","test","test","test","test","test","test","test","test","test");
echo ("ok");
$con = mysql_connect("localhost","xxxxxxxxx","xxxxxxx")
or die ("didn't work");// this works ok, cuz I run by itself and get check message at end
mysql_select_db("fitforli_database",$con);//this also works ok
//below is what won't work, I've tried with and without the MySQL_query command. do I need to use quotation marks throughout?
mysql_query (INSERT INTO `fitforli_database`.`gym` (`id`, `fname`, `lname`, `address`, `city`, `state`, `phone`, `email`,
`gender`, `contact`, `contact#`, `relation`, `plan`)
VALUES (null, "test","test","test","test","test","test","test","test","test","test","test","test");
echo ("ok");