Technical Help & Discussion > Website Design & Programming

php advice needed

<< < (3/7) > >>

psp83:
Just simple html & php


--- Code: ---<div id="grid">
<?php foreach($ad_array as $key=>$ad) : ?>
<img src="./<?php echo $ad['image']; ?>" width="<?php echo $ad['width']; ?>px" height="<?php echo $ad['height']; ?>px" />
<?php endforeach; ?>
</div>

--- End code ---

Now just the tricky part.. removing the spaces and making the ads fit together. any ideas?

sam:
some kind of optimization code... hmmm, do you want it so it stays static?  you could just hard feed them in...

Or maybe you just produce the big image by grabbing all the smaller images, in gimp and just create an image map over the top?

There has to be some code to fit box into a bigger box..

I have to say this such an odd thing todo!

psp83:
It cant be static. Has to be done on the fly as more ads are being added all the time.

User fills in the form, uploads the ad, pays for it and it becomes active.

I've been trying to google for some code/tips but its a hard thing to google for as i dont exactly know what to search for or call it  ???

Rik:
Could you not find a similar site and take a look at the page source, Paul?

psp83:
Tried that with the million dollar home page script package you can download, its like looking for a needle in a haystack!

Plus most sites like this gives you the option to select where you want in the grid and you have more information then to use php GD to position the image. like in the million dollar home page, just create one large pic with image maps. But i dont have that to work with.. only thing i've got is the image and sizes :(

I think this part of the extras might have to get outsourced to a firm over seas or something.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version