Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Oct 2007
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help a donkey!!!

    I'm a donkey and need someone to help me PLEASE!!

    I'm trying to insert a Flash banner into a table and only gets errors

    This is the original code

    echo "<table class='table_layout_main' style='width:{$config['gallery_width']};padding-top:0' cellpadding='0' cellspacing='0'>
    <tr><td>
    </td></tr> ";

    and when I paste this (blue code), the final sentences ( </td></tr> " change the color showing an an error

    echo "<table class='table_layout_main' style='width:{$config['gallery_width']};padding-top:0' cellpadding='0' cellspacing='0'>
    <tr>

    <td classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="720" height="60">
    <param name="movie" value="123-banner_com_168574_willy.swf">
    <param name="quality" value="high">
    <embed src="123-banner_com_168574_willy.swf" width="688" height="91" autostart="false" align="middle" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>


    </td></tr> ";


    Thanks for help me

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,549
    Thanks
    8
    Thanked 1,095 Times in 1,086 Posts
    I'm having a hard time understanding the post.

    I do think that in this part:

    <embed src="123-banner_com_168574_willy.swf" width="688" height="91" autostart="false" align="middle" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>

    You can't have any carriage returns on the line. It should all be one continous line.
    Make sure you don't have a broken line with CR's.

    The rest of the post I don't understand.

  • #3
    New Coder
    Join Date
    Oct 2007
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks,
    I have a long line with no CR.

    What I tried to say was that the paga has a code that works ok. and is this

    echo "<table class='table_layout_main' style='width:{$config['gallery_width']};padding-top:0' cellpadding='0' cellspacing='0'>
    <tr><td>
    </td></tr> ";

    but when I change it by inserting this code betwee the <td> and </td> there is an error

    <td classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="720" height="60">
    <param name="movie" value="123-banner_com_168574_willy.swf">
    <param name="quality" value="high">
    <embed src="123-banner_com_168574_willy.swf" width="688" height="91" autostart="false" align="middle" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>

    I hope this get it clear.
    Thanks any way.

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,549
    Thanks
    8
    Thanked 1,095 Times in 1,086 Posts
    Are you getting a PHP error?

    Because the Flash part you're inserting has a whole bunch of quotes in it?

    Try escaping all of those quotes:


    <td classid=\"clsid27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"720\" height=\"60\">
    <param name=\"movie\" value=\"123-banner_com_168574_willy.swf\">
    <param name=\"quality\" value=\"high\">
    <embed src=\"123-banner_com_168574_willy.swf\" width=\"688\" height=\"91\" autostart=\"false\" align=\"middle\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\"></embed>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •