Forum Topic: calling on stuff from a database

(92 views • 1 reply)

This topic is 1 page long.

<< < > >>
None

mooseisloose

Reply To Post Reply & Quote

Posted at: 5/12/09 11:04 AM

mooseisloose FAB LEVEL 34

Sign-Up: 12/06/04

Posts: 2,404

im making a new clothing website and i want to make it using databases and php and whatnot because doing it purely in html is soooooooo time consuming its horrible.

ive made a database and its got an "items" table with collumns such as "item name" "item id" "price" sizes" etc...... but i know nothing when it comes to the php side of things. can anyone explain and/or point to simple tutorials on how to make this information come up on a page using php?

i obviously want the correct image/item name/price etc to show up on a page depending on what item is clicked on. would be so greatful if people could shove me towards the right tutorials and whatnot so i can learn this stuff. i dont wanna learn anything complecated, just what is neccesary =]

thanks


None

64

Reply To Post Reply & Quote

Posted at: 5/12/09 11:33 AM

64 DARK LEVEL 18

Sign-Up: 02/16/04

Posts: 3,868

First you need to connect to your database in the PHP file using the mysql_connect() function, then select the appropriate database using mysql_select_db().

Then it's just a matter of making a SQL query and loading the data accordingly.

You can check out some tutorials/documention here.

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 02:15 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!