Forum Moderators: coopster

Message Too Old, No Replies

Output variable don't show

         

Prasawet

10:17 pm on Oct 14, 2011 (gmt 0)

10+ Year Member



I have variable like this:

$first_segment = "<script type='text/javascript' src='http://img.free2.thepluginz.com/player/flowplayer-3.2.6.min.js'></script>";

I want to store it in mysql table but can't pass it...

Echoing don't work eather...

echo $first_segment;

...give me nothing on the screen, can see it in a page source of output screen but that is not what I want.

rocknbil

12:09 am on Oct 15, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



can see it in a page source of output screen but that is not what I want.


It's supposed to be invisible in a browser page. Try


$first_segment = htmlentities("<script type='text/javascript' src='http://example.com/player/flowplayer-3.2.6.min.js'></script>");

echo $first_segment;

But of course, that will now no longer execute because the carats have been converted to &lt; and &gt;.

Prasawet

2:51 pm on Oct 16, 2011 (gmt 0)

10+ Year Member



Thanks, that is it more less what I needed.