Skip to content
WJunction - Webmaster Forum

need php help

Status
Not open for further replies.
can anyone tell me what is wrong with this code:
Code:
<?php $swf_code = get_post_meta($post->ID, 'swfcode', true);
         echo '<embed src=".$swf_code" menu="false" height="600" width="480" pluginspage="http://www.macromedia.com/go/getflashplayer/">';
?>
thanks in advance :)
 

2 comments

Replace:
PHP:
echo '<embed src=".$swf_code" menu="false" height="600" width="480" pluginspage="http://www.macromedia.com/go/getflashplayer/">';

with:

PHP:
echo '<embed src="'.$swf_code.'" menu="false" height="600" width="480" pluginspage="http://www.macromedia.com/go/getflashplayer/">';
 
Status
Not open for further replies.

About the author

P
Member · Joined
24
Messages
0
Reactions
1
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom