• Resolved justbishop

    (@justbishop)


    Hi πŸ™‚

    Can someone good w/ PHP help me out a bit? I don’t know enough to know why the following code is throwing up the error below it. I thought I escaped all of the quotation marks out correctly, but left those actually in PHP template tags. Should I escape those as well?:

    echo "<td align=\"center\" width=\"33%\" class=\"entry\"><table border=\"0\" width=\"100%\"><tr><td><b><a href=\"<?php the_permalink() ?>\" title=\"Permalink\"><?php the_title(); ?></a></b></td><td align=\"right\"><b><?php the_time('jS') ?></b></td></tr><tr><td colspan=\"2\" align=\"center\"><img src=\"wp-content/uploads/<?php $values = get_post_custom_values("image"); echo $values[0]; ?>\" width=\"140px\"></td></tr><tr><td colspan=\"2\" align=\"center\"><!-- Dewplayer Begin--><object type=\"application/x-shockwave-flash\" data=\"http://www.goashleygo.com/noise/wp-content/plugins/dewplayer-flash-mp3-player/dewplayer.swf?mp3=<?php $values = get_post_custom_values("mp3"); echo $values[0]; ?>&showtime=1&bgcolor=FFFFFF\" width=\"140\" height=\"20\"><param name=\"bgcolor\" value=\"FFFFFF\" /><param name=\"movie\" value=\"http://www.goashleygo.com/noise/wp-content/plugins/dewplayer-flash-mp3-player/dewplayer.swf?mp3=<?php $values = get_post_custom_values("mp3"); echo $values[0]; ?>&showtime=1&bgcolor=FFFFFF\" /></object><!-- Dewplayer End--></td></tr></table></td>";

    The error (the above code is what’s on line 97):

    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/*****/public_html/noise/wp-content/themes/fixed-blix/noisehome.php on line 97

    Please advise if more info is needed, and thanks for looking πŸ™‚

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘PHP Error on Custom Page Template’ is closed to new replies.