View Single Post
Old 01-20-2008, 04:31 PM   #1 (permalink)
lesP
The Contributor
Newcomer 
 
Join Date: Jan 2008
Posts: 27
Thanks: 1
lesP is on a distinguished road
Default Weird error with query

Hi there.

I do not understand it. I get no output from this query:

$id_bruger=$_SESSION['id_bruger'];
$query=mysql_query("select distinct b_spil.titel as titel,b_spil.id as id from b_spil,f_spil where f_spil.id_bruger='$id_bruger' && f_spil.id_spil=b_spil.id");
while($result=mysql_fetch_array($query)){
echo ' <a href="index.php?mode=mine_spil&action=vis_spil&spi l='.$result["id"].'" class="undermenupunkt">';
echo $result["titel"];
lesP is offline  
Reply With Quote