php - Error: Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean give -
this question has answer here:
can me code please,
<link rel="shortcut icon" href="<?php echo url_global; ?>graficos/logoicon.jpg" /> <?php $listaaj = mysql_query("select * ajuste limit 0,1"); $rowaj = mysql_fetch_array($listaaj); ?> <title><?php echo $rowaj['titulo']; ?><?php if($activaseo=="si"){ echo " - ".$inctitle;}?></title>
error: error: warning: mysql_fetch_array() expects parameter 1 resource, boolean given in /incluir/seo.php on line 5
how can solve error?
thanks.
your query cannot execute. suggest pop in error-reporting, full sql-error message:
$listaaj = mysql_query("select * ajuste limit 0,1") or die(mysql_error());
the mysql_*
functions deprecated. shall use either mysqli_*
or, preferable, pdo.
Comments
Post a Comment