![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
22/05/2007, 16:11
|
![Avatar de b3nj4](http://static.forosdelweb.com/customavatars/avatar16857_1.gif) | | | Fecha de Ingreso: febrero-2002
Mensajes: 168
Antigüedad: 23 años Puntos: 3 | |
Re: problemas con mysql_fetch_array() Tu error está en:
$query_total_votos_por_marca = mysql_query("Select count(voto) as uno from prueba where voto='$r[0]'");
No se puede acceder a un array en un string de esa forma, habría que hacerlo con {}:
$query_total_votos_por_marca = mysql_query("Select count(voto) as uno from prueba where voto='{$r[0]'}"); |