OK, I have a simple page that I need to make work. I can do it simple enough in ASP, but they have a Linux box, and I have to use PHP. Only problem is I do not know PHP at all, so troubleshooting the errors is difficult at best. Anyway, the code is simply taking the response from a single question survey and writing it to a db:
and the error is:
I'm sure my error is syntactical in nature, but I really don't know. Once I get this figured out I will go back to learn PHP, but for now I just need to make this work. So, what have I done wrong? And thank you in advance for any help that you can give me!
Willie
Code:
<?php
mysqlconnect("mysqlv12","gppsurvey","GPPartners") or die ('Error:'.mysqlerror());
mysql_select_db("gppsurvey");
$query = "Insert into survey(survey,response) values('".$survey."','".$response."')";
mysql_query($query) or die ('Error updating database');
response.redirect("thankyou.html")
?>
and the error is:
Code:
Fatal error: Call to undefined function mysqlconnect() in /data/10/0/161/147/813310/user/834562/htdocs/newsletter/surveyprocess.php on line 3
I'm sure my error is syntactical in nature, but I really don't know. Once I get this figured out I will go back to learn PHP, but for now I just need to make this work. So, what have I done wrong? And thank you in advance for any help that you can give me!
Willie