You are here: Re: I'm really confused « PHP Programming Language « IT news, forums, messages
Re: I'm really confused

Posted by Shelly on 11/18/07 22:44

phill.luckhurst@googlemail.com wrote:
> I haven't a clue with PHP so please spoon feed me.
>
> In the middle of a script that I have been looking at there is this
> code which I have extracted to run on it's own
>
> <?php
> include "flashthumb.php";
>>
>
> <script type="text/javascript" src="mootools.js"></script>
> <script type="text/javascript" src="slideshow.js"></script>
>
> <div id="my_slideshow" class="slideshow">
> <img src="images/vote.jpg" alt="A picture" width="400" height="300" /
>>
> </div>
> ...
> <script type="text/javascript">
> myShow = new Slideshow('my_slideshow', {hu: 'images/', images:
> ['vote.jpg','thumb_rar.jpg','thumb_wav.jpg']});
> </script>
> <?
>>
>
> Now flashthumb.php generates a list of filenames in the variable
> $url[1], $url[2], $url[3] etc
>
> how would I use those in the myshow line instead of
> 'vote.jpg','thumb_rar.jpg','thumb_wav.jpg'
>
> or am I totally barking mad and getting it wrong?

Suppose the value of $url[1] is the one that corresponds to 'my_slideshow'
and holds that value. Then you would use

<?php echo $url[1]; ?>

instead of 'my_Slideshow'.

It allows you, for example, to initialize fields in the middle of html text.

--
Shelly

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация