newb query: url doesn't show

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
thealexangroup2
Forum Newbie
Posts: 3
Joined: Sun Mar 10, 2013 5:43 pm

newb query: url doesn't show

Post by thealexangroup2 »

the top code is the ORIGINAL iframe code from the index.php file.


<dd><iframe width="221" height="178" src="http://www.youtube.com/embed/<?php echo $video_explode[1];?>" frameborder="0" allowfullscreen></iframe></dd>
</dl>


i thought that if i just replaced this part of url " <?php echo $video_explode[1];? " with the actual part of the youtube embed code url here:

" 0VopFinhWzY ", it would work.

but it doesn't.


<td valign="top" width="42%" class="vidv"><iframe title="" src="http://www.youtube.com/embed/[b]0VopFinhWzY[/b]">" frameborder="0" width="322" height="183"></iframe><br /></td>
<td valign="top" style="padding:0 0 0 2%;"><?php echo $right_cont['description'];?></td>

thanx in advance and if you need more info let me know,
alx
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: newb query: url doesn't show

Post by requinix »

Look at your HTML.

Code: Select all

<iframe title="" src="http://www.youtube.com/embed/0VopFinhWzY">" frameborder="0" width="322" height="183"></iframe>
You didn't quite replace the PHP properly: you left the > in and added an extra quote.
thealexangroup2
Forum Newbie
Posts: 3
Joined: Sun Mar 10, 2013 5:43 pm

Re: newb query: url doesn't show

Post by thealexangroup2 »

thanx for response,

yeah, sorry, actually, the code i have in cpanel looks like this:

<td valign="top" width="42%" class="vidv"><iframe title="" src="http://www.youtube.com/embed/0VopFinhWzY" frameborder="0" width="322" height="183"></iframe>

and it still doesn't show.

incidentally, this code shows identically in 2 files:

index.php
manage_video.php

now the thing is, when i check the source code of the page, it doesn't show. it still shows the original code, this:
<iframe title="" src="http://www.youtube.com/embed/Jcg-9YCx3G ... S&hl=en_US" frameborder="0" width="322" height="183"></iframe>

even though in my cpanel, the new code is there. i purged/cleared cache, etc. but still same.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: newb query: url doesn't show

Post by requinix »

Well, either you're editing the wrong file or there's some caching in place still showing the old version. Since it's the result of PHP code I'm going to guess the former.
thealexangroup2
Forum Newbie
Posts: 3
Joined: Sun Mar 10, 2013 5:43 pm

Re: newb query: url doesn't show

Post by thealexangroup2 »

requinix,

your reply got me to looking at other files and it turned out there was an error in the profile.php code. so that got updated and all is good in the world once more.
Post Reply