![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
10/02/2016, 18:20
|
![Avatar de quitos](http://static.forosdelweb.com/customavatars/avatar66884_1.gif) | | | Fecha de Ingreso: junio-2004
Mensajes: 119
Antigüedad: 20 años, 8 meses Puntos: 1 | |
Respuesta: Max(ID_U) Error jajaja por cierto me faltó el fetch_row jajaja
Sorry, tambien ando en la chamba... !
---------------------------------------------
$losIds= mysqli_query("select id_u from usuarios order by id_u DESC");
$sqldatos= mysqli_fetch_row($losIds);
$miArray= array();
foreach($sqldatos as $sqldatos){
$miArray[]=$sqldatos;
}
$idDelArray= array_rand($miArray);
echo $miArray[$idDelArray]; |