Ver Mensaje Individual
  #12 (permalink)  
Antiguo 23/06/2010, 12:22
jordixip2
 
Fecha de Ingreso: mayo-2010
Mensajes: 112
Antigüedad: 14 años
Puntos: 0
Respuesta: Si pongo esta linea.... no sigue ejecucion

function cuenta($bbdd)
{
global $link_ss,$link_backup;

if ($bbdd=="ss")
$link_cc=$link_ss;
else
$link_cc=$link_backup;




$sql="select count(titol) as cuenta from articles where titol<>''";
$result = mysql_query($sql,$link_cc) or die(mysql_error());
while($row = mysql_fetch_array($result)) $total=$row['cuenta'];

echo 'Cuenta es ' . $total . ' ' . $row['cuenta'];

return $total;
}