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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Page won't display -- what did I do wrong?

    Hi Folks,

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

    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 122011<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 NewsCEO George Feiger cautioned that in a highly volatile marketinvestors 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

  • #2
    Regular Coder
    Join Date
    Jul 2010
    Location
    Oregon City
    Posts
    280
    Thanks
    5
    Thanked 50 Times in 49 Posts
    PHP Code:
    $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.

  • Users who have thanked Adee for this post:

    lamboguy (11-22-2011)


  •  

    Posting Permissions

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