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 '
'; ?>
}
?>