I have this problem when i try to get my data from the mysql db -->
This is my script:Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/hosting/l2/web/index.php on line 142
<?php
include 'inc/config.php';
include 'inc/mysql.php';
$query = "SELECT topic_id, topic_title, topic_poster FROM phpbb_topics LIMIT 10 ORDER BY topic_id DESC".
"SELECT user_id FROM phpbb_users";
$result = mysql_query($query);
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
echo "<a href='forum/viewtopic.php?t={$row['topic_id']}'> {$row['topic_title']} <b>by</b> <a href='forum/profile.php?mode=viewprofile&u={$row['user_id']}'> {$row['topic_poster']}<br>";
}
include 'inc/cmysql.php';
?>
Bookmarks