PDA

View Full Version : Can't connect to database


carerra
02-19-2010, 02:29 PM
I was trying to setup a simple database at uni the other day but I couldn't get it to work. So I took the code home and tried it here but I still can't get the information to submit to the database. Is there anyway someone here could help me with this? Just that it would make my uni work so much easier if I can get a database to work for my website.

Cheers.

onlinestore.ulmb.com/Inputform.php

Tyler
02-19-2010, 02:50 PM
To start with you have two <body> tags, make sure you delete one of them.
Second, I do not see an error message, is there one you get?
Did you code this on your own or did you follow a tutorial?

carerra
02-19-2010, 04:53 PM
The error is that when I enter data into the boxes to be inserted into the database, it doesn't display on the last, third page.

And yes, it was a tutorial from uni.

Edit: Sorry, I should have mentioned earlier, it's on the third page after entering data in to the text boxes that it doesn't get stored into my database which is the problem.