BroChris
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">
<img src="images/photo<?php ($_GET['page']*1) ?>-t.jpg">
|
||||
multiply variableBroChris 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"> mordred 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? BroChris 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. |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum