TI POSTO IL CODICE PER FAVORE SE LO GUARDI E C E QUALCHE ERRORE ME LO DICI CIAO
Codice PHP:

$DB 
= new DB();
$DB->connect();

$result mysql_query("select * from configurazioni ");
while(
$array=mysql_fetch_array($result)){


$titolosito= isset ($array[nome])? ($array[nome]):'';
$logosito=$array[logo];
$url_sito $array[link_helpdesk];
$titolo_helpdesk $array[titolo_help_desk];
}
echo
"<div id ='helpdesksite'>\n";


echo
"<div id ='logotile'>\n";
echo
"<table  id='title' border ='0'  cellpadding='0' cellspacing='0'>\n";
echo
"<tr>\n";
echo
"<td id='logo'> <a href ='$url_sito'>[img]admin/logo/$logosito[/img]</a></td>\n";
echo
"<td id='titolohelpdeskmodificabbiledallutente'>$titolo_helpdesk</td>\n";
echo
"<td><span class='date'>\n

\n
$today</span></td>\n";
echo
"</tr>\n";
echo
"</table>\n";
echo
"</div>";


echo
"<div id ='bordoaltocolorato'>\n";

echo
"<table cellpadding='0' cellspacing='0' id='bordoalto'>\n";
echo
"<tr>\n";
echo
"<td id='primosfondoalto'></td>\n";
echo
"</tr>\n";
echo
"<tr>\n";
echo
"<td id='secondosfondoalto'></td>\n";
echo
"</tr>\n";
echo
"<tr>\n";
echo
"<td id='terzosfondoalto'></td>\n";
echo
"</tr>\n";
echo
"</table>\n";

echo
"</div>\n";


echo
"<div id ='secondotitolomodificabile'>\n";
echo
"<table id='tablesecondotitolo'  border='0' cellpadding='0' cellspacing='0'>\n";
echo
"<tr>\n";
echo
"<td id='tdsecondotitololatoprimo'><a href ='$url_sito'>".SUPPORT.$titolosito</a></td>\n";//QUI VERRA IL NOME
echo"<td id='tdsecondotitololatocentro'></td>\n";
echo
"<td id='tdsecondotitololatodestro'>\n";
 if(
$autorizzato=="1"){
echo 
"Benvenuto<a href ='mailto:$nome_utente'>[b]$nome_utente[/b]</a> ";
}
else
{echo 
"<span class='ospite'>".HALLO_GUEST."</span>";
}
echo
"</td>\n";
echo
"</tr>\n";
echo
"</table>\n";
echo
"</div>";
################################################################
/*BLOCCO CONTENUTO CENTRALE */
################################################################
echo"<table id='contenutogenerale' border='0' width ='100%'  cellpadding='0' cellspacing='0' ><tr><td>";
echo
"<div id ='contenutogeneralediv'>\n";
echo
"<div id='contenutosinistro'>";
echo
"<table id='tablesinistra' border='0' width ='595'  cellpadding='0' cellspacing='0'><tr><td>";


/*contenuto sinistrro*/
echo"<table  class='titoloesfondobordo'   cellpadding='0' cellspacing='0'  border ='0'>\n";                             
echo
"<tr>\n";
echo
"<td class ='sfondoaltoprimo' ></td>\n";
echo
"</tr>\n";
echo
"<tr>\n";
echo
"<td class ='sfondoaltosecondo' ><div class='textsfondotitle'> [img]immagini/blueblockarrow.gif[/img]   knowldgbase</div></td>\n";
echo
"</tr>\n";
echo
"<tr>\n";
echo
"<td class ='textsfondoalto' ><div class='textsfondo'>
Welcome to knowldgbase</div></td>\n"
;
echo
"</tr>\n";
echo
"</table>\n"
echo
"
\n"
;

echo
"<div id ='know'>\n";
echo
"<table   class ='kn'border ='0' width ='100%' cellpadding='0' cellspacing='0'>\n";
echo
"<tr>\n";
echo
"<td>\n";



$DB->connect();
function 
totale($cat_id){
$result mysql_query("select * from knowledgebase where cat_id= $cat_id and enable = '1' ");
$tot=mysql_num_rows($result);
return 
$tot;



$DB->connect();
$result_cat_know mysql_query("select * from knowledgebase_cat  where enable ='1' order by id desc ");
$result_cat =mysql_num_rows($result_cat_know); 
if(
$result_cat >0){
while(
$array=mysql_fetch_array($result_cat_know)){


echo
"<table class='knowtitle' border ='0'  cellpadding='0' cellspacing='0' >\n";
echo
"<tr>\n";
echo
"<td>";
echo
"<table class = 'tablecatknow' border ='0' cellpadding='0' cellspacing='0' ><tr>";
echo
"<td class ='imagecategoryknow'>[img]immagini/icon_folderyellow.gif[/img]</td>\n";
echo
"<td class ='categoryknow'> [url='']".$array[nome]."[/url](".totale($array[id]).") </td>\n";
echo
"<td class='datacatknow'></td>\n";
echo
"<td></td>\n";
echo
"</tr></table>";
echo
"</tr>\n";
echo
"<tr>\n";
echo
"<td>";



$result mysql_query("select * from knowledgebase limit 5");
while(
$array=mysql_fetch_array($result)){



echo
"<table class = 'ultimiarticoliknow' border ='0' cellpadding='0' cellspacing='0' ><tr>";
echo
"<td class ='imagearticolokn'>[img]immagini/icon_topicyellow.gif[/img]</td>\n";
echo
"<td class='articoloknow'>[url='']".$array[domanda]."[/url]</td>\n";
echo
"<td></td>\n";
echo
"<td   class ='dataarticoloknow'>".$array[data]."</td>\n";
echo
"</tr></table>";
}

echo
"</td>";
echo
"</tr>\n";
echo
"</table>\n";
}
}else {
echo
"non ci sono categorie";}

















echo
"</td>\n";
echo
"</tr>\n";
echo
"</table>\n";
echo
"</div>";


/*contenuto sinistrro*/
echo"</td></tr></table>";
echo
"</div>";




echo
"<div id='contenutodestro'>";
echo
"<table id='tabledestra' border='0' width ='235px'  cellpadding='0' cellspacing='0'><tr><td>";
/*contenuto destro*/

include"mini-blocks/login-form.php";
include
"mini-blocks/cerca-form.php";

/*contenuto destro*/
echo"</td></tr></table>";
echo
"</div>";

echo
"</td></tr></table>";


################################################################
/*BLOCCO CONTENUTO CENTRALE */
################################################################






################################################################
///TABLE BLOCCH         
################################################################
echo"<div id ='blocks'>\n";
echo
"<table class ='scheletrobachecaprincipale' border ='0' cellpadding='0' cellspacing='0'>\n";
echo
"<tr>\n";
echo
"<td>\n";


/*QUESTA  E LO SCHELETRO DELLE BACHECHE //NEWS DOWNLOAD ECC*/
echo"<table class ='scheletrobachecaprincipaleseconda' border ='0' cellpadding='0' cellspacing='0'>\n";
echo
"<tr>\n";
echo
"<td>\n";                                                        /*QUESTO TAG <TD> APRE LA PRIMA BACHECA*/
//echo"QUA CI DEVE ESSERE IL CONTENUTO\n";                             //PRIMA BACHECA
include("block/block_knowdgbase.php");
echo
"</td>\n";                                                       /*QUESTO TAG </TD> CHIUDE LA PRIMA BACHECA*/
echo"</tr>\n";
echo
"<tr>\n";
echo
"<td  border ='0' cellpadding='0' cellspacing='0'>\n";
//echo"QUA CI DEVE ESSERE IL CONTENUTO \n";                                     /*seconda bacheca*/
include("block/block_troubleshooter.php");

echo
"</td>\n";
echo
"</tr>\n";
echo
"<tr>\n";
echo
"<td  border ='0' cellpadding='0' cellspacing='0'>\n";
//echo"QUA CI DEVE ESSERE IL CONTENUTO \n";                                       /*terza bacheca*/
echo"</td>\n";
echo
"</tr>\n";
echo
"<tr>\n";
echo
"<td border ='0' cellpadding='0' cellspacing='0'>\n";
//echo"QUA CI DEVE ESSERE IL CONTENUTO \n";                                    /*quarta bacheca*/
include("block/block_news.php");
echo
"</td>\n";
echo
"</tr>\n";
echo
"</table>\n";


echo
"</td>\n";
echo
"</tr>\n";
echo
"</table>\n";
echo
"</div>";

###########################################################

///TABLE BLOCCH               H
###########################################################

###########################################################

///TABLE MENU INFERIORE                    E
###########################################################

echo"<div id ='menuinferiore'>\n";

echo
"<table id='menuinferiore'  cellpadding='0' cellspacing='0' border ='0'>\n";//QUA C E IL MENU INFERIORE NEL BORDO GRIGIO
echo"<tr>\n";
echo
"<td>[url='']Home[/url] | ";
if(
$autorizzato ==1){
echo
"[url='']".WHIEV_TICKET_MEMBER."[/url] | ";
}else{
echo
"[url='register.php']".REGISTER_TICKET."[/url] | ";
}
echo
"<a href =''>".SUBMIT_TICKET."</a> | ";
echo
"<a href ='knowledgebase.php' target ='_parent'>".KNOWLEDGBASE."</a> | ";
echo
"<a href =''>".TROUBLESHOOTER."</a> | ";
echo
"<a href =''>".NEWS."</a> | ";
echo
"<a href =''>".DOWNLOAD."</a> | ";
echo
"</td>\n";
echo
"<form name='form' id='jumpMenu' onchange='MM_jumpMenu('parent',this,0)'>";
echo
"<td class ='lingua'>
  <select name='lingua' id='jumpMenu' >
    <option value='1'>Italiano</option>
    <option value='2'>English</option></select>
</td>\n"
;
echo
"</form>";
echo
"</tr>\n";
echo
"</table>\n";

echo
"</div>\n";
#################################################################

///TABLE MENU INFERIORE                    E
#################################################################




#################################################################
/*  DIV FOOTER*/
#################################################################

echo"<div id =''>\n";
echo
"<table id='fottertable' cellpadding='0' cellspacing='0' border ='0'>\n";
echo
"<tr>\n";
echo
"<td><div class ='fotterdiv'>Copyright © 2006-2007 By : [url='http://www.rcwebagency.it'] Rcwebagency [/url] - All rights reserved
Help Desk Software </div>\n</td>\n"
;
echo
"</tr>\n";
echo
"</table>\n";
echo
"</div>";

#################################################################
/*  DIV FOOTER*/
#################################################################








echo"</div>";
/*____________________________QUI CHIUDE  CON QUESTO </DIV> __________________________*/

echo"</div>\n";


// Chiude
$DB->disconnect();