Código PHP:
mysql_select_db("jchavez");
$strSQL="Select fecha, pastor, nm_predica,archivo from predicas order by fecha";
$result=mysql_query($strSQL);
if ($result)
$cuantos= mysql_num_rows($result);
echo "<table width=\"50%\" height=26 border0 align=center cellpadding=1 cellspacing=1 bordercolor=#000000 bgcolor=#000000>";
while($row = mysql_fetch_array($result)) {
?>
<tr>
<td bgcolor="#DBEEF3"><font color="#003399" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><?=$row[0]?></strong></font></td>
<td bgcolor="#DBEEF3"><font color="#003399" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><?=$row[1]?></strong></font></td>
<td bgcolor="#DBEEF3"><font color="#003399" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><?=$row[2]?></strong></font></td>
<td bgcolor="#DBEEF3"><font color="#003399" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><?=$row[3]?></strong></font></td>
</tr>
<?
}
echo "</table>";
Código:
tiene mas de un campo .. como hacer para que los varra a la ves deseo pasarle un areglo para los headers osea loso titulos de cada columna e pesando algo asi asi$strSQL="Select fecha, pastor, nm_predica,archivo from predicas order by
Código PHP:
$x = array("Opcion1", "Opcion2");
Código PHP:
$result=mysql_query($strSQL);
por su ayuda gracias.
![sonriente](http://static.forosdelweb.com/fdwtheme/images/smilies/smile.png)
![sonriente](http://static.forosdelweb.com/fdwtheme/images/smilies/smile.png)
![sonriente](http://static.forosdelweb.com/fdwtheme/images/smilies/smile.png)