Ver Mensaje Individual
  #4 (permalink)  
Antiguo 20/01/2009, 17:52
Avatar de jfl_freak
jfl_freak
 
Fecha de Ingreso: enero-2009
Ubicación: Guatemala
Mensajes: 96
Antigüedad: 15 años, 4 meses
Puntos: 1
Respuesta: ¿como mostrar en tabla mis datos de mysql?

Si te sirve de algo, tambien aca tengo este codigo:

Código PHP:

<table width="100%" border="1" align="center" cellpadding="3" cellspacing="0">

<?php 
    
include("Conexion.php");
        
$cnx conectarse();
    
$instruccion =  "SELECT codigo, nombre ".
                        
"FROM curso";
    
$tabla mysql_query($instruccion,$cnx);
    
mysql_close($cnx);
    
$cnt_cursos 0;
    
    while (
$registro mysql_fetch_array($tabla)) {
        
$cnt_cursos++;
        
        echo 
'<tr style="font-family: arial; font-size: 11px;">';
        echo 
'<td align="left">';
        echo 
$registro["codigo"];
        echo 
'</td>';
        
            echo 
'<td align="left">';
        echo 
$registro["nombre"];
        echo 
'</td>';
        echo 
'<td align="center"> </td>';
        echo 
'<td align="right">';
    }
    
mysql_free_result$tabla );
        echo 
'</td>';
        echo 
'</tr>';
        echo 
'</table>';

?>