Jump to content

site n da noticas onliene mas local dá


madness
 Share

Recommended Posts

Warning: Invalid argument supplied for foreach() in /mnt/web6/31/53/567953/htdocs/home.php on line 26


            include('admin/minidb.php');
           linha 26--     $db = new minidb(dirname(__FILE__).'/admin/noticias_'.$lingua.'.php');
            foreach($db->content as $id => $noticia) {
				if(!empty($noticia['titulo']) && !empty($noticia['noticia']))
				{
					echo '<p><a href="'.$noticia['url'].'" title="'.$noticia['titulo'].'">'.$noticia['titulo'].'</a></p>';
					echo '<div class="lipsum">'.$noticia['noticia'].'</div>';
					echo '<div class="emptyspace" style="height:180px;"></div>';
				}
			}
Link to comment
Share on other sites

Warning: Invalid argument supplied for foreach() in /mnt/web6/31/53/567953/htdocs/home.php on line 26

Esse erro indica o que se está a passar: o argumento fornecido não é válido. No caso concreto, $db->content não é um array, ou é um array vazio.

"Para desenhar um website, não tenho que saber distinguir server-side de client-side" - um membro do fórum que se auto-intitula webdesigner. Temo pelo futuro da web.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.