Lid |
|
Beste mensen,,
Ben bezig met een websitje game-scene.com. Nu ben ik bezig met de match pagina maken, enkel krijg ik steeds deze fout:
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 'match where match_id=''' at line 1
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 'match where match_id=''' at line 1
www.game-scene.com/site/pages/match.php?match_id=1 (werkt niet)
www.game-scene.com/site/pages/clanprofile.php?clan_id=1 (werkt wel)
Het is bijna het zelfde script alleen werkt de onderste wel en bovenste niet?
<?php
include ('dbc.php');
$match_id=$_GET['match_id'];
$bbb = mysql_query("SELECT match_id,match_name FROM teams WHERE match_id = '".$match_id."'") or die(mysql_error());
while ($list = mysql_fetch_object($bbb)) {
$id = "$list->match_id";
$query = mysql_query("SELECT * FROM match WHERE match_id='".$id."'");
$match_name = "$list->match_name";
}
?>
<?php include ('dbc.php'); $match_id=$_GET['match_id']; $id = "$list->match_id"; $query = mysql_query("SELECT * FROM match WHERE match_id='".$id."'"); $match_name = "$list->match_name"; } ?>
Om dit stuk gaat het denk ik
|