View Full Version : multiply variable
01-19-2004, 04:51 PM
Is there some way to multiply a variable gotten from the url? Here's what I'm trying to do:
<img src="images/photo<?php ($_GET['page']*1) ?>-t.jpg">
01-19-2004, 05:39 PM
As you did, you might need to add an echo/print infront of the multplication so it gets written to the output. However, what shall a multiplication by one accomplish?
01-19-2004, 08:26 PM
By 1? Nothing I guess. Lol wasn't thinking. But the same page will also have times 2, times 3, and times 4 (4 pictures per page).
Added echo and it works great. Again, I guess I wasn't thinking. I have so much coding to do right now my brain is fried. Thanks for helping.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.