Ver Mensaje Individual
  #12 (permalink)  
Antiguo 02/04/2008, 10:26
Diegon
 
Fecha de Ingreso: febrero-2008
Ubicación: Bogotá_Colombia
Mensajes: 72
Antigüedad: 17 años
Puntos: 0
Re: Consulta ultimo registro a tabla En Mysql

amigos hice esta parte pero no me sale los otros resulltados si hay alguna sugerencia me escriben

Código PHP:

require_once('Connections.php');
mysql_select_db($database,$L);

$fecha=$_POST['fecha'];

$SQL=mysql_query("SELECT  MAX(id_carro) AS 'id_carro' FROM entrada_concecionario WHERE  fecha='$fecha'",$L);
$row = mysql_fetch_array($SQL);
?>
<table class="odd" border="5">
 <tr bordercolor="#000000"  >
   <td bgcolor="BDEAD5"><p><strong>ID CARRO</strong></p></td>
 </tr>
 <tr>
   <td><input type="text" value="<?php echo $row['id_carro'];?>"  style=" color:#003333; font-family:Verdana, Arial, Helvetica, sans-serif; border:outset; display:inline; font-size:14px;" readonly/ /></td>
 </tr>  
 <tr>
   <td bgcolor="BDEAD5"><p><strong>FECHA ENTRADA CARRO A CONCESIONARIO</strong></p></td>
 </tr>
 <tr>
   <td><input type="text" value="<?php echo $row['fecha'];?>"  style=" color:#003333; font-family:Verdana, Arial, Helvetica, sans-serif; border:outset; display:inline; font-size:14px;" readonly//></td>
 </tr>  
 <tr>
   <td bgcolor="BDEAD5"><p><strong>MARCA CARRO</strong></p></td>
 </tr>
 <tr>
   <td><input type="text" size="45" value="<?php echo $row['marca_carro'];?>"   style=" color:#003333; font-family:Verdana, Arial, Helvetica, sans-serif; border:outset; display:inline; font-size:14px;" readonly//></td>
 </tr>  
</table>
por favor ayudenme que ya me estoy suerte..