This is a discussion on ".php?test= What is this all about?" within the PHP Forum section. This forum, and the thread ".php?test= What is this all about? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
.php?test= What is this all about?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
.php?test= What is this all about?
Hey
I have been googling this a good bit but I cant find a name for it. In a CMS im working on, i want it to have like: .php?news=XX As to say what news page. What on earth is this called so I can get some tutorials on it? I heard 'conditionals' but thats not right from what I got in my searches :S Thanks EDIT: This has nothing to do with PHP, but im getting my PC upgraded. I have a AMD Sepmron 2800+ and 512MB of ram. I want a prcessor that will actually hit 2.8ghz, but is this more inportant that 1GB of RAM? All processors capable of 2.8ghz seem to be pretty expensive, any good cheapos out there? Does it matter on my motherboard too? Like with a ghx card, will the mobo be able to cope type of thing? Last edited by atlaskid; Nov 18th, 2006 at 16:20. |
|
|
|
|||
|
Re: .php?test= What is this all about?
Hello,
i was wondering if you would be a little more specific on this. are you building a CMS or is are you just working in a CMS. what CMS is it, and im not sure what you are trying to do by this. if you can be more detailed i might be able to help you. just let me know and i will get back to you soon. ~ZobeNet |
|
|||
|
Re: .php?test= What is this all about?
Thanks for replying!
Im making a profile system. Like people sign up, make their profiles etc. I can do the sign up bit and such easy, but displaying the profiles is the issue. I thought if using .php?profile=ID like i had seen on many other sites, but I have no idea what itis called? Also any ideas on the hardware question would be appreciated from all Thanls |
|
|||
|
Re: .php?test= What is this all about?
Well you understand that the "profile=ID" part of the URL is a variable that you are passing to the next page.? right? so what you would do is send the users "ID" in the "profile" variable.
so basically you would edit your like to that page. normal link now may be something like this: <a href="index.php">User Page</a> but now you want to change it to be whatever the profile of the user is that you want. like this: <a href="index.php?profile=<?php=$profile_ID ?>">User Page</a> am i helping you or am i really confusing you... ??? sorry if i am not getting you correctly... i am new at msg boards... not php. |
|
|||
|
Re: .php?test= What is this all about?
That is called a GET variable which you can reference using $_GET["id"] when you are actually working with the profile page. I assume you are using some kind of database (whether flatfile or sql) so you would be able to process all the required things from this. There is a pretty easy tutorial to be found here:
http://www.php-mysql-tutorial.com/ph...-variables.php There is also a visual aid in the GET section to show you exactly how this process of referencing variables from the URL works. If you've managed to created a sign up process already then this should just be a small extension to your knowledge I think. |
|
|||
|
Re: .php?test= What is this all about?
Hey
I got a script today which kinda' had what I was looking for, would something like this work?
Ty |
|
|||
|
Re: .php?test= What is this all about?
This is simple you just query the database where the ID of the profile matches the ID in the database.
So your SQL query should be something like
|
![]() |
| Tags |
| php test |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IE6 Test | JacobHaug | Web Page Design | 4 | Feb 5th, 2007 21:55 |