Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $query = mysql_query("Select * from $Tkalender WHERE dato >= '".$day_today."' ORDER BY dato asc LIMIT 0,3") or die(mysql_error());
- while($row = mysql_fetch_array($query)) {
- $udstyr_content = explode(",",$row['udstyr']);
- $count_udstyr = count($udstyr_content);
- for($i = 0; $i < (0+$count_udstyr); $i++){
- $query_udstyr = mysql_query("Select * from $Tkalender_udstyr WHERE id = '".$row[$i]."'") or die(mysql_error());
- while($row_udstyr = mysql_fetch_array($query_udstyr))
- {
- $print_udstyr .= " ".$row_udstyr['navn']." -";
- }
- }
- print $print_udstyr;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement