Advertisement
Guest User

Untitled

a guest
Nov 14th, 2011
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. $query = mysql_query("Select * from $Tkalender WHERE dato >= '".$day_today."' ORDER BY dato asc LIMIT 0,3") or die(mysql_error());
  2. while($row = mysql_fetch_array($query)) {
  3.  
  4.     $udstyr_content = explode(",",$row['udstyr']);
  5.     $count_udstyr = count($udstyr_content);
  6.  
  7.     for($i = 0; $i < (0+$count_udstyr); $i++){
  8.                
  9.         $query_udstyr = mysql_query("Select * from $Tkalender_udstyr WHERE id = '".$row[$i]."'") or die(mysql_error());
  10.         while($row_udstyr = mysql_fetch_array($query_udstyr))
  11.         {
  12.             $print_udstyr .= " ".$row_udstyr['navn']." -";
  13.         }
  14.                
  15.          }
  16.  
  17. print $print_udstyr;
  18.  
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement