PHP - Mostrar Datos SQL en una fila

 
Vista:

Mostrar Datos SQL en una fila

Publicado por Elías (2 intervenciones) el 01/03/2013 10:10:05
Hola,
Estoy intentando buscar información de como puedo poner los datos de una consulta en forma horizontal, pero no logro encontralo.
Estoy intentando modificar un módulo joomla para que muestre los datos de la consulta en vez de forma vertical de forma horizontal.
¿Alguién podría indicarme como se hace?
Gracias

PD: Os dejo el codigo

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<table align="center" cellpadding="3" border="0" class="jsm_restable">
<?php
if(count($list)){
foreach ($list as $match) :
 
if($old_date != $match->m_date.' '.$match->m_time){
?>
<tr>
	<td colspan="2" class="match_date">
		<div align="center">
		  <?php
			echo date_bl($match->m_date,$match->m_time);
		?>
	  </div></td>
</tr>
<?php
}
 $old_date = $match->m_date.' '.$match->m_time;
?>
<?php
if($embl_is && (is_file('media/bearleague/'.$match->emb1) || is_file('media/bearleague/'.$match->emb2))){
	echo "<tr><td class='emblem_thome'>";
	if($match->emb1 && is_file('media/bearleague/'.$match->emb1) && $embl_is){
 
		echo '<img src="'.JURI::base().'media/bearleague/'.$match->emb1.'" width="40">';
 
	}
	echo "</td>";
	echo "<td>&nbsp;</td>";
	echo "<td class='emblem_taway'>";
	if($match->emb2 && is_file('media/bearleague/'.$match->emb2) && $embl_is){
 
		echo '<img src="'.JURI::base().'media/bearleague/'.$match->emb2.'" width="40">';
 
	}
	echo "</td></tr>";
}
?>
<tr>
 
			<td class="team_thome"><?php
				echo '<a href="'.JRoute::_('index.php?option=com_joomsport&task=team&tid='.$match->hm_id.'&sid='.($params->get( 'season_id' )).'&Itemid='.$cItemId).'">'.$match->home.'</a>';
			?></td>
			<td nowrap="nowrap" class="match_result">: <?php
					echo $match->score1?></td>
		</tr>
<tr>
  <td class="team_thome"><span class="team_taway">
    <?php
			echo '<a href="'.JRoute::_('index.php?option=com_joomsport&task=team&tid='.$match->aw_id.'&sid='.($params->get( 'season_id' )).'&Itemid='.$cItemId).'">'.$match->away.'</a>';
 
			?>
  </span></td>
  <td nowrap="nowrap" class="match_result"> : <?php echo $match->score2; //if($et && $match->is_extra){ echo " (".$bl_lang['BL_RES_EXTRA'].")";}
					echo '</a>';
				?></td>
  </tr>
<?php endforeach;
}
?>
</table>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder