[help] Adding and Displaying from Database

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
painful-one
Forum Newbie
Posts: 11
Joined: Tue Jan 05, 2010 11:26 am

[help] Adding and Displaying from Database

Post 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!
abushahin
Forum Commoner
Posts: 42
Joined: Wed Nov 25, 2009 12:35 pm
Location: london

Re: [help] Adding and Displaying from Database

Post 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
Post Reply