Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-19-2004, 04:51 PM   PM User | #1
BroChris
Regular Coder

 
Join Date: Jun 2002
Location: Louisville, KY
Posts: 279
Thanks: 0
Thanked 0 Times in 0 Posts
BroChris is an unknown quantity at this point
multiply variable

Is there some way to multiply a variable gotten from the url? Here's what I'm trying to do:
Code:
<img src="images/photo<?php ($_GET['page']*1) ?>-t.jpg">
__________________
designsbychris.com
BroChris is offline   Reply With Quote
Old 01-19-2004, 05:39 PM   PM User | #2
mordred
Senior Coder


 
Join Date: Jun 2002
Location: frankfurt, german banana republic
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
mordred is an unknown quantity at this point
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?
__________________
De gustibus non est disputandum.
mordred is offline   Reply With Quote
Old 01-19-2004, 08:26 PM   PM User | #3
BroChris
Regular Coder

 
Join Date: Jun 2002
Location: Louisville, KY
Posts: 279
Thanks: 0
Thanked 0 Times in 0 Posts
BroChris is an unknown quantity at this point
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.
__________________
designsbychris.com
BroChris is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:53 PM.


Advertisement
Log in to turn off these ads.