Napo ... io ho provato così, ma non va :
<?php
// Adsense Random
$Nhost = 'localhost';
$Nuser = '*******';
$Npassword = '*****';
$Nnamedatabase = '*******';
$Ndatabase = mysql_connect($Nhost, $Nuser, $Npassword) or die ("Impossibile connettersi al server $host");
mysql_select_db($Nnamedatabase, $Ndatabase) or die ("Impossibile connettersi al database $database");
$Nquery = "SELECT cb_pubadsense FROM jos_comprofiler WHERE author = row->$author";
$Nresult = mysql_query ($Nquery, $Ndatabase);
$Nrow = mysql_fetch_array($Nresult);
?>
<?php
$var = rand(0,1);
if ($var == 0) {
?>
<script type="text/javascript"><!--
google_ad_client = "<?= $Nrow[cb_pubadsense] ?>";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<?php
} else {
?>
<script type="text/javascript"><!--
google_ad_client = "*************";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><?php }
?>