PDA

View Full Version : Database problem, or problem with code?


Fergusonat
05-28-2009, 08:33 PM
Hello!

I am very new to the realm of php, and I'm currently trying to get a 3 step registration page to post to a database. I've shown my code to multiple friends and they seem to think there isn't anything wrong with the code itself. It was working previously, but when I added a paypal link, it suddenly stopped working. It is no longer posting to my database.

How do I figure out if it is a problem with the MySQL database or if it is still something screwy with my code? I'm using GoDaddy and I can't figure out if I somehow messed up the settings of the database somehow. I am a severe novice at this, so for anyone kind enough to answer, please try to put it in the simplest terms possible!!! :rolleyes:

Also, if anyone is feeling extremely nice today, here is the code itself. I think the problem is on Step2.php, but I literally have no clue. I'm extremely frustrated and about ready to throw in the towel. Any and all help you can provide, I'll be deeply appreciative.

http://www.sendspace.com/file/qztcpi

http://www.sendspace.com/file/wzeyqy

http://www.sendspace.com/file/2xm4ac

http://www.sendspace.com/file/1srg2o

abduraooft
05-29-2009, 10:29 AM
It was working previously, but when I added a paypal link, it suddenly stopped working. It is no longer posting to my database.
Have you turned on the error reporting? If not add
#error_reporting(E_ALL);
ini_set('display_errors', 1); at the top of your pages and add proper error checks to your query statements like
... = mysql_query("your query here") or die(mysql_error()); and try to find out the specific errors in your code.