PDA

View Full Version : php help


C4
02-20-2005, 11:53 PM
well Ive seen so many sites that have this, where it would be say index.php?main=mainsite and on that page it would say something like, HOW ARE YOU
then if you just go to index.php it would say HI

can anyone tell me how to do this?

Jon
03-06-2005, 07:55 AM
You just want to insert a php script on your php page that says "hi" or "how are you?".

I found you this script. Its #1 on google under "php script random quotes".

Its right here --> http://www.chipmunk-scripts.com/randomquote/randomquote.php

Make sure that you make the exetention of your page ".php" instead or "html" or whatever.

-Jon

Mark
03-06-2005, 07:28 PM
No, that isn't what he means, Jon. He is talking about something different. Click here (http://thedesignworld.com/pstutorials.php) and put your mouse over one of the tutorials in the Tutorial Navigation box. See how it says ...world.com/pstutorials.php?cat=5 - that is what he wants to know how to do.

Basically, it is a way to call information from a database. So, for my example, every tutorial Ryan filed under the category "5" will be called, and you will see them. It is the same as if you had a blog, and the entries were posted by date, so the post would be index.php?id=03062005 - you understand?

Anyways, if you really want to know how to do this, it isn't hard. It is a URL function.

$cat = $HTTP_GET_VAR[cat];

That puts 5 variable into $cat.

You can read up on it here (http://us2.php.net/manual/en/ref.url.php). :D

Hope that helped you some.