.php?test= What is this all about?

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Nov 18th, 2006, 15:50
Junior Member
Join Date: Jul 2006
Location: UK
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
.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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Nov 18th, 2006, 17:44
New Member
Join Date: Nov 2006
Location: Hutchinson, MN
Age: 29
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Nov 19th, 2006, 16:14
Junior Member
Join Date: Jul 2006
Location: UK
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Nov 19th, 2006, 19:31
New Member
Join Date: Nov 2006
Location: Hutchinson, MN
Age: 29
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Nov 20th, 2006, 05:58
Up'n'Coming Member
Join Date: Nov 2006
Location: United Kingdom
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
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. Good luck!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Nov 20th, 2006, 14:36
Junior Member
Join Date: Jul 2006
Location: UK
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
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?

Code: Select all
if($_GET["id"])
{
$id=$_GET["id"];
}
else
{
$no= "1";
}



while ($result = $rows){
                                      echo "<a href=index.php?id=$id>Next</a>";
                                      $id++;
                                     }
To display a list of profiles? What I dont get is how the actual profile of each member would be displayed, any code examples of that? I can write the code to display from a DB fine, just not so that it selects the right row from the DB etc. :S

Ty
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Nov 22nd, 2006, 14:33
Junior Member
Join Date: Oct 2006
Location: Uxbridge, West London
Age: 26
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
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
PHP: Select all

$query "SELECT * FROM table where ID = $_GET[id]" 

Hope this helps
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
php test

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
IE6 Test JacobHaug Web Page Design 4 Feb 5th, 2007 21:55


All times are GMT. The time now is 04:48.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42