In home ho una pagina che mi inserisce l'ultima news. La tabella è settata al 100% ma lateralmente ho messo dei banner a 600px in rotazione. Ora vorrei che se le battute della news sono ad esempio tra 400 e 700 mi deve comparire sotto al testo gli adsense di google se sono superiori a 700 niente. Questo è il mio codice
Codice PHP:
<?php
include($path . 'news/settings.php');
$dbcon = mysql_connect($db_server, $db_user, $db_passwd);
mysql_select_db($db_name);
$sql="SELECT * FROM phpnews_news ORDER BY id DESC LIMIT 1";
$risultati=mysql_query($sql);
while($riga=mysql_fetch_array($risultati)) {
$target=$riga["maintext"];
$target1=$riga["subject"];
$target2=$riga["postername"];
echo" <div align=\"justify\">[b]<span class=\"style2\">$target1</span>[/b]
<span class=\"style3\"> scritto da: $target2 </span>
<span class=\"style3\">$target</span></div>
";
}//Fine del while
?>
Mi aiutate please ?
Grazie