...

View Full Version : Page won't display -- what did I do wrong?



lamboguy
11-22-2011, 08:42 PM
Hi Folks,

Every week we post a list of online articles/links using the following php code:


<!--
<?php
$newslist = array(


'<p>October 26, 2011<br>
<a href="#" onclick="WarningExit(\'http://www.forbes.com/sites/steveschaefer/2011/10/26/embattled-european-banks-may-come-calling-for-u-s-regionals\')"> In a Forbes.com article entitled "Embattled European Banks May Come Calling For U.S. Regionals," Contango CEO George Feiger notes that some of the nation's smaller financial institutions may prove to be attractive acquisition targets for the embattled banks of Europe.</a>
',
'<p>August 12, 2011<br>
<a href="#" onclick="WarningExit(\'http://abcnews.go.com/GMA/video/dow-jones-fluctuations-leave-uneasy-14288676?&clipId=14288676&playlistId=-1&cid=siteplayer\')"> Speaking to ABC News, CEO George Feiger cautioned that in a highly volatile market, investors should be careful because the pace is so fast that it\'s impossible to predict the price at which their trades will be executed.</a>
',


(etc.)


But now it doesn't work -- it doesn't display.
What did I do wrong? Or...what am I doing wrong?
(I wonder if my finger slipped or something :(

Thanks!

Fred

Adee
11-22-2011, 08:56 PM
$newslist = array(


"<p>October 26, 2011<br>
<a href='#' onclick='WarningExit(\'http://www.forbes.com/sites/steveschaefer/2011/10/26/embattled-european-banks-may-come-calling-for-u-s-regionals\')'> In a Forbes.com article entitled 'Embattled European Banks May Come Calling For U.S. Regionals,' Contango CEO George Feiger notes that some of the nation's smaller financial institutions may prove to be attractive acquisition targets for the embattled banks of Europe.</a>
",
"<p>August 12, 2011<br>
<a href='#' onclick='WarningExit(\'http://abcnews.go.com/GMA/video/dow-jones-fluctuations-leave-uneasy-14288676?&clipId=14288676&playlistId=-1&cid=siteplayer\')'> Speaking to ABC News, CEO George Feiger cautioned that in a highly volatile market, investors should be careful because the pace is so fast that it's impossible to predict the price at which their trades will be executed.</a>
");


you had some mismatched quotes and didn't close the array.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum