I just don't know what I;m doing wrong... I have a php script that is supposed to insert values into my database, but everytime that the code hits this part of the script it hangs...
Im a newbie, I looked at tutorials online, but clearly I don't understand what Im doing wrong..
// Make a MySQL Connection
$link = mysql_connect("jdbc:mysql://mysqlx.server.net/MyDB", "MyUserName", "MyPassword");
//connect to my database
$link.mysql_select_db("TalesDB");
//insert
$link.mysql_query("INSERT INTO table (ID, name, comment) VALUES(" +
$_GET['Key'] + ", '" +
$("#leaveComment").find("input").val() + "', '" +
$("#leaveComment").find("textarea").val() + "' ) ");
Please note that I use $("#leaveComment").find("input").val() and $("#leaveComment").find("textarea").val() + "' ) "); earlier in the script - and they are validated as text
Please help! Any idea what Im doing wrong?