Forums
This topic is locked
help with php
13 Mar 2005 09:26:19 ben ben posted:
I want to create something very similar to this: www.foghat.co.uk/members.php?ID=14 where the member names are listed and when clicked on brings up a different file in that part of the page. I'm guessing that's what happens, but I dont actually know what I'm talking about. So could somebody help me? This is my site www.tne04clan.com the member area does not work right now, but you can get a better idea of what I'm trying to do. Thanks. Replies
Replied 14 Mar 2005 16:16:31
14 Mar 2005 16:16:31 Matt Bailey replied:
It looks like the members details are stored in a database. When you click on a members name it is re-loading the page, but filtering the data based on which member name you click on. It does this using each members individual ID number. You can see the ID number in the URL when you click on a name. For example, 'bing's' ID number is 19 and this is passed as a URL parameter after the page's file name - members.php?ID=19.
Does that make sense?
To do this kind of stuff you need to find out about using a database and also how to get the information out of the database onto the page. I use MySQL (database) and PHP (code) because they are free and very robust. There are many other alternatives, M$ ACCESS and ASP being another popular choice.
It's well worth looking into and will completely change the way you build sites. For example, the page you showed us is only one page - it simply re-loads with new data depending on which username you click on.
A good place to start are some of the articles on this website:
Installing PHP 5 under Windows
www.dmxzone.com/showDetail.asp?TypeId=28&NewsId=6774
Installing MySQL on a Windows PC
www.dmxzone.com/showDetail.asp?TypeId=28&NewsId=6738
Setting up a PHP Site & MySQL Connection in Dreamweaver MX
www.dmxzone.com/showDetail.asp?TypeId=28&NewsId=6949
PHP Basics 7: Connecting to a MySQL Database
www.dmxzone.com/showDetail.asp?TypeId=28&NewsId=6650
There's loads more information on the site, but this should be enough to get you started.
Hope that helps...
___________________________________
* Sorry... how do you do that again?... *
Does that make sense?
To do this kind of stuff you need to find out about using a database and also how to get the information out of the database onto the page. I use MySQL (database) and PHP (code) because they are free and very robust. There are many other alternatives, M$ ACCESS and ASP being another popular choice.
It's well worth looking into and will completely change the way you build sites. For example, the page you showed us is only one page - it simply re-loads with new data depending on which username you click on.
A good place to start are some of the articles on this website:
Installing PHP 5 under Windows
www.dmxzone.com/showDetail.asp?TypeId=28&NewsId=6774
Installing MySQL on a Windows PC
www.dmxzone.com/showDetail.asp?TypeId=28&NewsId=6738
Setting up a PHP Site & MySQL Connection in Dreamweaver MX
www.dmxzone.com/showDetail.asp?TypeId=28&NewsId=6949
PHP Basics 7: Connecting to a MySQL Database
www.dmxzone.com/showDetail.asp?TypeId=28&NewsId=6650
There's loads more information on the site, but this should be enough to get you started.
Hope that helps...
___________________________________
* Sorry... how do you do that again?... *