Ver Mensaje Individual
  #5 (permalink)  
Antiguo 28/03/2010, 12:38
arshavin
 
Fecha de Ingreso: marzo-2010
Mensajes: 16
Antigüedad: 14 años, 2 meses
Puntos: 0
Respuesta: problema con bd

ya lo he resuleto de esta forma

Código PHP:
<?php
$conexion 
mysql_connect("localhost""xxxxx""xxxxx");
mysql_select_db("xxxxx"$conexion);

$queEmp "SELECT * FROM mx_albums ORDER BY title DESC LIMIT 5";
$resEmp mysql_query($queEmp$conexion) or die(mysql_error());
$totEmp mysql_num_rows($resEmp);
?>
                  <?php 
if ($totEmp0) {
    while (
$rowEmp mysql_fetch_assoc($resEmp)) {
        echo 
"<strong>".$rowEmp['title']."-".$rowEmp['date']."</strong><br>";
        
    }
}
?>
y ya lo hace pero al momento de querer mostrar la fecha me sale de esta forma

prueba-2010-03-28 12:32:57

y quisiera que solo me la mostrase asi

prueba-28/03/10 o algo parecido pero que no sea tan largo.

que es lo que tendria que modificar.