Page 1 of 1

[help] Adding and Displaying from Database

Posted: Wed Jan 06, 2010 10:31 am
by painful-one
Ok, I was able to create a login script for my website. Users can login and that's about it. I want to add some tables to the MySQL Database and put a form on the users page and let them add information to a text field and have it saved to the Database.

Secondly, I want a generic page that pulls information from said Database.

So, in essence, someone could enter in '61' in the 'Character Level' field and it saves the 61 to the DB table named 'Level'. Then on the 'members' page it pulls the information from the DB and simply displays it.

Thanks!

Re: [help] Adding and Displaying from Database

Posted: Wed Jan 06, 2010 11:46 am
by abushahin
Hey to insert data into db you need to create a form then let php insert it for you, to retrieve data you'll need to create a form to retrieve it for you. you can have a look at hows its done here