|
Posted by lawrence k on 12/18/37 11:48
Toby Inkster wrote:
> lawrence k wrote:
>
> > I've two functions. currentHeadline looks in $_GET for a variable
> > called 'image' and prints what it finds. showThumbnail takes an image
> > for a parameter and resizes it before sending it to the screen. But
> > when I do this:
> >
> > <?php showThumbnail(currentImage(), 20, 20); ?>
>
> currentImage() will execute before showThumbnail().
>
> When you say "prints what it finds", do you really mean "returns what it
> finds"? If you're not 100% sure of what the difference between these two
> phrases is, then post the source code for currentImage().
Sorry, I was an idiot. currentImage was using echo instead of returning
the string I expected it to return
Navigation:
[Reply to this message]
|