Witam
Jak zmienić poniższy kod, żeby zamiast wyświetlać wertykalnie wyświetlał wynik horyzontalnie ?

Jakaś idea ?

  1. <?php
  2. mysql_connect("host","user","pass") OR DIE("DB connection unavailable");
  3. mysql_select_db("database") or die( "Unable to select database");
  4.  
  5. $query1 = "select id,name from week";
  6. $res1 = mysql_query($query1);
  7. $num=mysql_numrows($res1);
  8. if($res1){
  9.  while($cat = mysql_fetch_assoc($res1)){
  10.  echo '';
  11.     print "
  12. ".$cat['name']."
  13. ";
  14.     $query2 = "select godzina,zajecia,prowadzi from event where dzien  = '".$cat['id']."'";
  15.     $res2 = mysql_query($query2);
  16.     if($res2){
  17.        while($story = mysql_fetch_assoc($res2)){
  18.        echo'';
  19.        }
  20.     }
  21.  }
  22. }else{
  23. }
  24. echo ''.$story['godzina'].''.$story['zajecia'].''.$story['prowadzi'].'';
  25. ?>