Onbekend |
|
Hallo ik heb nu dit:
//Connect
$res = mysql_query("SELECT * FROM cg, members ORDER BY ID DESC WHERE ID_MEMBER = MEMBER_ID") or die(mysql_error());
while ($obj = mysql_fetch_object($res)) {
echo "<a href='http://tbsites.nl/tbsites/forum/index.php?p=cg&id=";
echo $obj->ID."'> ";
echo $obj->NAME."</a> ";
echo $obj->TIME."<br>";
}
mysql_free_result($res);
?>
//Connect $res = mysql_query("SELECT * FROM cg, members ORDER BY ID DESC WHERE ID_MEMBER = MEMBER_ID") OR die(mysql_error()); while ($obj = mysql_fetch_object($res)) { echo "<a href='http://tbsites.nl/tbsites/forum/index.php?p=cg&id="; echo $obj->ID."'> "; echo $obj->NAME."</a> "; echo $obj->TIME."<br>"; } mysql_free_result($res); ?>
Maar dan krijg ik de volgende foutmelding:
Citaat: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE ID_MEMBER = MEMBER_ID' at line 1
|