php - Error: Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean give -


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

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -