gomarc: I love you sir. I can't believe I missed that. Why was neither name, nor age recorded? I would think only name would be recorded and age wouldn't.
what do you recommend I do to spot errors like this on larger pieces of code? I'm doing this for a survey which may end up being 100...
Thank you for the information. I have done much research. I'm still having the same damn issue though. I was successfully able to add data to MySql (YAY!). Unfortunately, when I want data from a form to be entered it doesn't work. I'm doing this in xampp.
The following is the code I used...
Good advice! I did a web search and found this tutorial http://www.phpro.org/tutorials/Introduction-to-PHP-PDO.html
Then I copy and pasted it and modified the variables to get this
<?php
/*** mysql hostname ***/
$hostname = 'localhost';
/*** mysql username ***/
$username = 'unfthrea_foo'...
Thank you for the information! I am not yet finished reading it. Is there some code available that is known to work? I have found the best way for me to learn code is to take something that works then play with it until it breaks, then I know what shouldn't be changed.
I'm using this tutorial
http://www.freewebmasterhelp.com/tutorials/phpmysql
When I enter data and submit, the data does not get recorded into the database. What is going on here? I want to make a survey for a charity I am working with but I think i'm missing some code or something.
Thank you for helping me. We are almost done with the problems! Just a little bit further and I can make my survey for charity reasons. This part confuses me. Are you saying that when I create the database I need to name it unfthrea_foo (unfthrea is my cpanel username). ? Because then I couldn't...
Thank you, I took your advice but received this error "Warning: mysql_connect() [function.mysql-connect]: Access denied for
user 'unfthrea_surveyt'@'localhost' (using password: YES) in
/home/unfthrea/public_html/survey/insert.php on line 2
Could
not connect: Access denied for user...
Thank you, I have uploaded the file hello.php to that directory. However, when i enter http://unfthreads.x10.mx/public_html/hello.php I get the error. Do I have the wrong URL?
Hello, I am new to this site.
I want to host the script show here http://php.net/manual/en/tutorial.firstpage.php
I tried putting the hello.php file into a folder but when I type the URL for it I get a 404 error.