![Aplauso](http://static.forosdelweb.com/fdwtheme/images/smilies/aplausos.gif)
![Aplauso](http://static.forosdelweb.com/fdwtheme/images/smilies/aplausos.gif)
![Aplauso](http://static.forosdelweb.com/fdwtheme/images/smilies/aplausos.gif)
![Aplauso](http://static.forosdelweb.com/fdwtheme/images/smilies/aplausos.gif)
Amigos ya solucione el problema ahora si quedo bien con los sub querys asi queda todo el codigo
Código PHP:
<?php
require_once('Connections.php');
mysql_select_db($database,$link);
$fecha_ingreso=$_POST['fecha_ingreso'];
//slelecionamos la sconsulta y sub consulta
$consultSQL=mysql_query("SELECT * FROM entrada_cocecionario WHERE id_carro=(SELECT MAX(id_carro) AS 'id_carro' FROM entrada_concecionario WHERE fecha_ingerso='$fecha_ingreso')", $link);
if($row = mysql_fetch_array($consultSQL))
{
?>
<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 INGRESO</strong></p></td>
</tr>
<tr>
<td><input type="text" value="<?php echo $row['fecha_ingreso'];?>" 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>
<?php
}else if echo " no se encontro ningun tegistro ";
?>
Gracias a todos por las respuestas no me toco cambiar el diseño de la base de datos pense que me tocaba hacer un id auto increment
Suerte a todos