I need help with a small php script

I need a script that will pull from my server say, 10 ads display these ads randomly also these ads will have their own clickable links which will take them to their respective URLs. IE, when Y ad is shown clicking will take you to Y’s website, X ad is shown it will take you to X’s website. needs t be 300X65px. I will pay someone to help me with it… hopefully this isnt agaisnt the rules

what will be the format of these ads that’s stored on the server? essentially {image => url} mappings?

you can create ads in form of a picture.
on a database you can store the name of the image for example, the url they correspond to and an UNIQUE ID to identify each ads.

table
‘ID’ int(2) not null primary key,
‘image_name’ varchar(70),
‘URL’ varchar(255)

using rand(1,10) function in php you can get ramdom integer from 1 to 10 assuming you will only have 10 pics ads

[php]
$ads_id = rand(1,10);

$query = “SELECT image_name,URL FROM tbl_name WHERE ID=$ads_id”;
[/php]

once you got that you display the image with the corresponding URL.

@qiming.fang yes

Sponsor our Newsletter | Privacy Policy | Terms of Service