New problem. When adding another row to the database I realised I need to collect information from a multidimensional array. I changed the script for this and now it has gone crazy. Also I used mysgl_fetch_array so I have a numerical array.
$datacat = array('general_cat', 'funny_cat', 'help_cat', 'quiz_cat', 'chat_cat', 'game_cat');
$categorys = array('General', 'Funny', 'Help related', 'Quizzes', 'Chatbots', 'Video game related');
for($ix=0; $ix<6; $ix++) {
echo "<font face=\"arial\" size=\"3\"><u><b>" . $categorys[$ix] . ":</b></u></font></br>";
$query = "SELECT id, title FROM articles WHERE $datacat[$ix]=1 ORDER BY date DESC";
$result = mysql_query($query);
$count = 0;
while($count < 5 && $row = mysql_fetch_array($result)){
$id = $row[0][$count];
$title = $row[1][$count];
// Here you need to add the rest of the html tags and so forth but you get the idea
echo "<a href=\"http://www.godofgod.co.uk/newssub/view_article.php?id=" . $id . "\"><font face=\"arial\">" . $title . "</font></a></br>";
$count++;
}
echo "</br>";
}
What happened here I do not know - http://www.godofgod.co.uk/newssub/articles.php
It wouldn't let me unresolve my other thread.