Page not displaying correctly

Hi

I have a site with a link to a page where the latest updates to the site are listed with hyperlinks to the relevant pages. This has stopped displaying correctly after a software upgrade on the site.
While there are many pages, this is the only one that has problems. Also a second site has the same page (but with slightly different code, so I can’t copy one across to the other) and that is working OK. I’ve included links to both for comparison.

This site works…
http://www.fleetwood-fishing-industry.co.uk/latest-updates/

This one doesn’t…
http://www.fleetwood-trawlers.info/index.php/latest-updates/

The code on the page is as follows. I don’t have any knowledge of PHP so I’m totally lost here and any help would be appreciated. Thanks

<?php $num_per_page = 40; $query = "select * from wp_posts where post_date < post_modified and post_content like '%Fleetwood Trawler -%' and post_status like '%publish%' order by post_modified DESC LIMIT " . $num_per_page; $result = mysql_query($query); ?>

Here you can find a list of the last 40 updated vessel pages.

You will see the boats name and when the ships information was updated. Click the vessels name for more information.

To view all Fleetwood Motor Trawlers currently in our database click here.

    <?php while ($row = mysql_fetch_array($result)) { echo '
';
	?>
  • => - <?php echo date('jS \of F Y',strtotime($row["post_modified"])); ?>
  • <?php echo '';

    }
    ?>

    The problem lies within this snippet. I’m am going to eliminate all the other code to show you the error.[php]

    <?php while ($row = mysql_fetch_array($result)) { echo '
    ';
       ?>
  • => - <?php echo date('jS \of F Y',strtotime($row["post_modified"])); ?>
  • <?php

    echo ‘’;

    }
    ?>
    [/php]

    [php]
    while () {

    latest-updates> => // => is the error - well it’s not really, see below…

    }
    [/php]

    The script is printing what it is told (=>), although this is not what you expected.
    You need to replace => with whatever variable was there before the update.

    Hope that helps,
    Red :wink:

    Sponsor our Newsletter | Privacy Policy | Terms of Service