Ver Mensaje Individual
  #5 (permalink)  
Antiguo 22/10/2010, 11:44
Death_Empire
 
Fecha de Ingreso: febrero-2010
Mensajes: 818
Antigüedad: 14 años, 2 meses
Puntos: 55
Respuesta: rango de fechas

Código PHP:
if(mysql_num_rows($result) > 0){
    echo 
"<table border= '3'\n";
    echo 
"<tr> \n";
    echo 
"<td><b>id</b></td> \n";
    echo 
"<td><b>dname</b></td> \n";
    echo 
"<td><b>mname</b></td> \n";
    echo 
"<td><b>amname</b></td> \n";
    echo 
"<td><b>email</b></td> \n";
    echo 
"<td><b>subject</b></td> \n";
    echo 
"<td><b>message</b></td> \n";
    echo 
"<td><b>date</b></td> \n";
    echo 
"<td><b>close_reason</b></td> \n";
    echo 
"</tr> \n";

    while(
$row mysql_fetch_array($result)){
        echo 
"<tr> \n";
        echo 
"<td>".$row["id"]."</td> \n";
        echo 
"<td>".$row["dname"]."</td> \n";
        echo 
"<td>".$row["mname"]."</td> \n";
        echo 
"<td>".$row["amname"]."</td> \n";
        echo 
"<td>".$row["email"]."</td> \n";
        echo 
"<td>".$row["subject"]."</td> \n";
        echo 
"<td>".$row["message"]."</td> \n";
        echo 
"<td>".date("d-M-Y H:m:s ",$row["date"])."</td> \n";
        echo 
"<td>".$row["close_reason"]."</td> \n";
        echo 
"</tr> \n";
    }
    echo 
"</table>";

}else{
    echo 
"¡ La base de datos está vacia !";