Re: image and youtube links in array [message #177998 is a reply to message #177995] |
Thu, 10 May 2012 02:21 |
|
richard
Messages: 213 Registered: June 2013
Karma:
|
Senior Member |
|
|
On Thu, 10 May 2012 09:48:27 +1000, Jeff North wrote:
> On Wed, 9 May 2012 11:14:23 -0400, in comp.lang.php richard
> <member(at)newsguy(dot)com>
> <17c37aytbt0sv(dot)jfrgge29dzk3(dot)dlg(at)40tude(dot)net> wrote:
>
>> | On Wed, 09 May 2012 10:35:57 -0400, Jerry Stuckle wrote:
>> |
>> | > On 5/9/2012 10:13 AM, richard wrote:
>> | >> I want to create an array in php that would have a list of several hundred
>> | >> items.
>> | >> Each item would have ten seperate fields.
>> | >> One of those fields would be a link to an image, and another, a link to a
>> | >> youtube video.
>> | >> youtube now has a simpler method of using an iframe rather than using their
>> | >> old embedding code.
>> | >>
>> | >> I do not want just the page link from the url. I want to show the video on
>> | >> my page.
>> | >>
>> | >> The idea being, left column shows basic list of names.
>> | >> Right column shows images, video and more information.
>> | >>
>> | >> Oh and Beau, either shut the fuck up or contribute in a civil manner.
>> | >
>> | > Linking to a video vs. showing a video has nothing to do with PHP.
>> |
>> | yeah well then is this guy wrong?
>> | http://www.codeproject.com/Articles/200739/PHP-Iterative-Array-Viewer-and-H TML-Viewer
>
> No.
> Think of it this way - php holds the structure and html formats the
> output.
> If you look at the code you will notice that there are lots of <div>
> and <span> and other html elements.
> To see what is happening try this:
> <?php
> echo "pic1.jpg";
> echo "<img src='pic1.jpg'>";
> ?>
> If you load the above into a browser you will get the text "pic1.jpg"
> then the actual image of pic1.jpg.
> HTH
Thank you.
http://1littleworld.net/echo1.php
That was all I wanted to know. So obviously, the answer to my question is
yes it can be done.
|
|
|