Loading Images and content with PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
karansawan
Forum Newbie
Posts: 1
Joined: Mon Sep 29, 2008 12:34 pm

Loading Images and content with PHP

Post by karansawan »

Hello Everybody,

I have a web page in which I want to load images and content on the basisi variables which are mentioned in the url with the GET method. So what i want to do is that I want to get a variable from the url like this

http://www.xyz.com/int.php?cat=music

So, if the page gets this url, the php code should get a variable which has the value of music and then load the image and content associated with music in the page.

Can someoneplease tell me how to do it.

I am not an expert in PHP but understand its syntax but I cannot figure it out.

Thanks in advance.

Karan.
User avatar
The_Anomaly
Forum Contributor
Posts: 196
Joined: Fri Aug 08, 2008 4:56 pm
Location: Tirana, Albania

Re: Loading Images and content with PHP

Post by The_Anomaly »

I'd imagine that we need a bit more information. You said load images and content. Could you organize the content and images into a PHP page that you could then include/require based on the querystring?
Post Reply