Ver Mensaje Individual
  #8 (permalink)  
Antiguo 07/02/2009, 14:52
Avatar de miros84
miros84
 
Fecha de Ingreso: diciembre-2008
Mensajes: 351
Antigüedad: 15 años, 4 meses
Puntos: 4
Respuesta: Como poner 3 registros en una fila.

Trato de hacer eso, pero no me sale. Perdonad mi ignorancia.


$str = '<table border="1">';
for ($i = 1; $i <= 2; $i++ ) {
$str.= '<tr>';
for ($j = 1; $j <= 2; $j++ ) {
$str.= '<td>


print " Ime na potrebitela: ";
echo($row["ime"]);
print " <br>";

print " Email: ";
echo($row["mail"]);
print " <br>";

print " Mensaje: ";
echo($row["mensaje"]);
print " <br>";
print"<hr>";


'.$j.'</td>';
}
$str.= '</tr>';
}
$str.= '</table>';

echo $str;