Salta al contenuto
  • CATEGORIES
  • La Community Connect.gt
  • Presentati alla Community
  • News Ufficiali da Connect.gt
  • Internet News
  • A Scuola Di
  • Digital Marketing
  • Intelligenza Artificiale
  • SEO & GEO
  • Web Marketing e Content
  • Google Analytics e Web Analytics
  • Google Ads & Advertising
  • YouTube
  • TikTok, Instagram e altri Social
  • Google Adsense, Affiliazioni e Guadagno
  • E-Commerce
  • Coding e Sistemistica
  • Help Center: consigli per il tuo progetto
  • Hosting e Cloud
  • Coding
  • CMS & Piattaforme Self-Hosted
  • Annunci e Collaborazioni
  • Annunci Vendita e Acquisto: Pubblicità, Domini, Link e altro
  • Collaborazioni WEB e Lavoro: offro e cerco
  • Impresa, Fisco e Leggi
  • Consulenza Legale e Professioni Web
  • Consulenza Fiscale, Imprese, Startup e P.Iva
  • Gli Off Topic
  • PC, Smartphone e altri Hardware
  • Tutti i Software
  • GT Fetish Cafè
  • Discussioni
  • 0 Non letti 0
  • Recenti
  • Hashtag
  • Popolare
  • Utenti
  • Privacy
  • Termini e condizioni
  • © 2026 Search On Media Group S.r.l.
Collassa
Connect.gt
Il network Search On
Connect.gt WMF AI Festival Accademia Advanced SEO Tool AgentCy Social Media Strategies Search Tech
Registrati Accedi
Connect.gt
Stream Interest Categorie Hashtag
R

rocco.mod

@rocco.mod
Non seguire Segui
Informazioni
Post
18
Discussioni
10
Condivisioni
0
Gruppi
0
Da chi è seguito
0
Chi segue
0

Post

Recenti Migliore Controverso

  • vbseo board
    R rocco.mod
    CMS & Piattaforme Self-Hosted

    Salve ragazzi volevo chiederi , cos'è il vbseo , un abbellimento per vbulletin_o un forum con i suoi database i tutti i suoi files? Io ne ho trovato uno online e pesa 320 kb e mi sembra strano fatemi sapere se vbseo è tutto un unico forum.


  • portali in rete
    R rocco.mod
    CMS & Piattaforme Self-Hosted

    salve sapreste consigliarmi un portale come meetic o come badoo dove si possa incontrare la gente grazie


  • Funzione per estrarre in un unica variabile chiave e valore
    R rocco.mod
    Coding

    Ciao non va bene non mi da il risultato che deve darmi id chiave nome valore.


  • Funzione per estrarre in un unica variabile chiave e valore
    R rocco.mod
    Coding

    Salve a tutti avrei bisogno di un vostro aiuto vi spiego intanto cosa dovrei fare:
    In una tabella del database ho inserito i gruppi del tipo superadmin , admin , staff, ecc...

    Adesso io dovrei estrarre da questa tabella l ' id del gruppo, e associarlo al nome, quindi un unica variabile.

    Ho fatto tante prove, adesso con l ultima prova mi stampa l ultimo id e nome, e non mi stampa tutti gli id e nomi inoltre non associa l'id al nome cosa fare mi date una mano grazie.

    function GroupSelect(){ 
    global $dbcore ; 
    $sql = mysql_query("select id_groups, nome_group from groupstaff order by id_groups asc")or die(mysql_error()); 
      while(  $row = mysql_fetch_assoc($sql)){ 
             $return = array($row['id_groups']=>$row['nome_group']); 
        } 
        return $return; 
    }
    

  • plugin per formattazione codice php
    R rocco.mod
    CMS & Piattaforme Self-Hosted

    salve ragazzi qualcuno saprebbe indicarmi un plugin per il bbcode che formatt il php grazie


  • nome utente skype su due pc
    R rocco.mod
    Tutti i Software

    salve ragazzi avrei bisognio una vostra mano, innanzi tutto mi scuso con la comunity e lo staff , se magari ho sbagliato la sezione dove postare , comunque, io ho due pc uno in ufficio e uno a casa che sono 24 ore su 24 connessi a internet,adesso come posso fare a far funzionare un unico nome utente su skype? quindi il problema e che il mio nome utente deve essere funzionante su entrambi i pc che sono sempre connessi .aspetto vostre notizie grazie rocco


  • consigli su vari blog
    R rocco.mod
    CMS & Piattaforme Self-Hosted

    salve ragazzi conoscete qualche blog tipo cms da consigliarmi ? grazie


  • passare a smarty ilcontenuto da database in due colonne
    R rocco.mod
    Coding

    salve ragazzi ho un problema che da giorni non riesco a risolvere, vi spiego in che cosa consiste: io sto facendo un lavoro dove il menu e tutti i contenuti vengono estratti da database il menu e composto da icona titolo e descrizione e patch , vi spiego io dovrei passare tutto questo a smarty template,pero il problema che questi contenuti che sono 6 li voglio mettere in due colonne, adesso io una mezza oluzione l avrei trovata, comunque vi faccio vedere lo script l index.php

    if($autorizzato=="1"){
       $caric_blocks_home = mysql_query("select  * from blocks_home where posizione ='1' and   
          permission='2' and enable ='1' limit 1"); 
       while($array=mysql_fetch_array($caric_blocks_home)){ 
       $valori_da_passare[$cnt]['posizione'] = $array['posizione']; 
       $valori_da_passare[$cnt]['img_icon'] = $array['img']; 
       $valori_da_passare[$cnt]['path_content'] = $array['path']; 
       $valori_da_passare[$cnt]['title_content']  = constant("".$array['nome']."");  
       $valori_da_passare[$cnt]['descrict_content'] = constant("".$array['description'].""); 
       // Incremento il contatore 
       $cnt++; 
       } // FIN QUI DOVREBBE ANDARE TUTTO BENE: fai una sola query 
    } else {   // Anche qui ok, perchè fai una query 
    $cnt = 0;   // Contatore 
       $caric_blocks_home = mysql_query("select  * from blocks_home where posizione ='1' and 
          permission='1' and enable ='1' limit 1"); 
       while($array=mysql_fetch_array($caric_blocks_home)) { 
       $valori_da_passare[$cnt]['posizione'] = $array['posizione']; 
       $valori_da_passare[$cnt]['img_icon'] = $array['img']; 
       $valori_da_passare[$cnt]['path_content'] = $array['path']; 
       $valori_da_passare[$cnt]['title_content']  = constant("".$array['nome']."");  
       $valori_da_passare[$cnt]['descrict_content'] = constant("".$array['description']."");
       // Incremento il contatore 
       $cnt++;  
       } 
    }   // Provo a cambiare... 
    unset($caric_blocks_home); 
    $caric_blocks_home = mysql_query("select  * from blocks_home where posizione ='2'  and 
       enable ='1' limit 1"); 
    while($array=mysql_fetch_array($caric_blocks_home)) { 
       $valori_da_passare[$cnt]['posizione'] = $array['posizione']; 
       $valori_da_passare[$cnt]['img_icon'] = $array['img']; 
       $valori_da_passare[$cnt]['path_content'] = $array['path']; 
       $valori_da_passare[$cnt]['title_content']  = constant("".$array['nome']."");  
       $valori_da_passare[$cnt]['descrict_content'] = constant("".$array['description'].""); 
       // Incremento il contatore 
       $cnt++; 
    } 
     
    unset($caric_blocks_home); 
    $caric_blocks_home = mysql_query("select  * from blocks_home where posizione ='3'  and 
       enable ='1' limit 1"); 
    while($array=mysql_fetch_array($caric_blocks_home)) { 
       $valori_da_passare[$cnt]['posizione'] = $array['posizione']; 
       $valori_da_passare[$cnt]['img_icon'] = $array['img']; 
       $valori_da_passare[$cnt]['path_content'] = $array['path']; 
       $valori_da_passare[$cnt]['title_content']  = constant("".$array['nome']."");  
       $valori_da_passare[$cnt]['descrict_content'] = constant("".$array['description'].""); 
       // Incremento il contatore 
       $cnt++; 
    } 
    unset($caric_blocks_home); 
    $caric_blocks_home = mysql_query("select  * from blocks_home where posizione ='4'  and 
       enable ='1' limit 1"); 
    while($array=mysql_fetch_array($caric_blocks_home)){ 
       $valori_da_passare[$cnt]['posizione'] = $array['posizione']; 
       $valori_da_passare[$cnt]['img_icon'] = $array['img']; 
       $valori_da_passare[$cnt]['path_content'] = $array['path']; 
       $valori_da_passare[$cnt]['title_content']  = constant("".$array['nome']."");  
       $valori_da_passare[$cnt]['descrict_content'] = constant("".$array['description'].""); 
       // Incremento il contatore 
       $cnt++; 
    } 
    unset($caric_blocks_home); 
    $caric_blocks_home = mysql_query("select  * from blocks_home where posizione ='5'  and 
       enable ='1' limit 1"); 
    while($array=mysql_fetch_array($caric_blocks_home)){ 
       $valori_da_passare[$cnt]['posizione'] = $array['posizione']; 
       $valori_da_passare[$cnt]['img_icon'] = $array['img']; 
       $valori_da_passare[$cnt]['path_content'] = $array['path']; 
       $valori_da_passare[$cnt]['title_content']  = constant("".$array['nome']."");  
       $valori_da_passare[$cnt]['descrict_content'] = constant("".$array['description'].""); 
       // Incremento il contatore 
       $cnt++; 
    } 
    unset($caric_blocks_home); 
    $caric_blocks_home = mysql_query("select  * from blocks_home where posizione ='6'  and 
       enable ='1' limit 1"); 
    while($array=mysql_fetch_array($caric_blocks_home)){ 
       $valori_da_passare[$cnt]['posizione'] = $array['posizione']; 
       $valori_da_passare[$cnt]['img_icon'] = $array['img']; 
       $valori_da_passare[$cnt]['path_content'] = $array['path']; 
       $valori_da_passare[$cnt]['title_content']  = constant("".$array['nome']."");  
       $valori_da_passare[$cnt]['descrict_content'] = constant("".$array['description'].""); 
       // Incremento il contatore 
       $cnt++; 
    } 
    $smarty->assign("array_lato_sinistro",$valori_da_passare);
     
    $smarty->assign("array_lato_destro",$valori_da_passare);
    $smarty->display('index.tpl');
    

    adesso posto il template

     <table id='contenutitexticone' border="0" width="100%" cellpadding="0" cellspacing="0" >
      <tr>
      <td>
    {foreach name=nome item=row from=$array_lato_sinistro}  
      <table border="1" width="100%"  cellpadding="0" cellspacing="0">
      <tr>
       <td id='iconticket'> <a href ="{$row.path_site}/{$row.path_content}/index.php" target="_parent"><img src="{$path_site}/immagini/{$row.img_icon}.gif" width='60' height='60' /></a> </td>
        <td id='titlemessage'><a href ="{$row.path_site}/{$row.path_content}/index.php" target="_parent"><strong>{$row.title_content}</strong></a><br><span class='smalltext'>{$row.descrict_content}</span> </td>
       </tr>
    </table>
    {/foreach}
        </td>
         <td>
       {foreach name=nome item=row from=$array_lato_destro}   
    <table border="1" width="100%" cellpadding="0" cellspacing="0" >
      <tr>
        <td id='iconticket'> <a href ="{$row.path_site}/{$row.path_content}/index.php" target="_parent"><img src="{$path_site}/immagini/{$row.img_icon}.gif" width='60' height='60' /></a> </td>
       <td id='titlemessage'><a href ="{$row.path_site}/{$row.path_content}/index.php" target="_parent"><strong>{$row.title_content}</strong></a><br><span class='smalltext'>{$row.descrict_content}</span> </td>
      </tr>
     </table>
     {/foreach}
     </td>
     </tr>
    </table>
    

    lcosi com e funziona ma mi riperte il tutto nelle due colonne , i contnuti sono 6 soltanto che non me li divide in due colonne, ma me li duplica, io la soluzione l avrei trovata, sltanto che non so come passarla a smarty

    $colonne = 2; 
    $tot_righe = $num_record/$colonne; 
    $i_x = 0; 
    $x_x = 0; 
    $k_x = 0; 
    $cell_width = floor(100/$colonne); 
    $sql = " 
    SELECT * 
    FROM blocks_home 
    WHERE posizione BETWEEN 1 AND 6 
    AND permission = 1 
    AND enable = 1 
    "; 
    $query = @mysql_query($sql); 
    $num_record = @mysql_num_rows($query); 
    echo 
    '<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr>'; 
     
    while($array = mysql_fetch_array($query)){ 
    $i_x++; 
    $k_x++; 
    $x_x++; 
     
    echo"<td id='iconticket'><a href ='' target='_parent'><img src='' width='60' height='60' /></a></td><td id='titlemessage'><a href ='$path_site/".$array['path']."/index.php' target='_parent'><strong>".constant("".$array['nome']."")."</strong></a><br><span class='smalltext'>".constant("".$array['description']."")."</span></td>";
     
     
    if($i_x == $colonne) { 
    echo"</tr>"; 
    if ($i_x == $colonne && (($x_x/$colonne) != $tot_righe)) { 
    echo"<tr>";
    } 
    $i_x = 0; 
    } // fine $i_x == $colonne 
    } //fine del ciclo 
    if ($colonne <= $x_x){ 
    if (($k_x%$colonne) != 0){ 
    $indice = $k_x; 
    $indice++; 
    if(($indice%$colonne) == 0 ){ 
    echo'</tr>'; 
    } 
    } //fine ($k%$colonne)!= 0 
    } else{ //fine if $colonne <= $x 
    echo '</tr>'; 
    }
    echo '</table>';
    

  • invio email al db
    R rocco.mod
    Coding

    si c e un controllo nel config


  • invio email al db
    R rocco.mod
    Coding

    ciao ho risolto comunque era che non avevo messo nel db id aut increment comunque adesso ho un altro problema togliere il controllo sull email cioe se trova l email adesso non me la scrive perche c e toglerlo questo controllo


  • invio email al db
    R rocco.mod
    Coding

    salve gente ho un problema che spero mi aiutiate a risolvere io voglio salvare le mail nel database io ho usato due files uno config e uno mailform

    posto il mail form.php

    <?  
    include 'config.php';
    $adminaddress = "[email protected]"; 
    $siteaddress ="http://www.actionscriptnews.com"; 
    $sitename = "actionscriptnews.com"; 
    
    //No need to change anything below ... 
    // Gets the date and time from your server
    $date = date("m/d/Y H:i:s");
    // Gets the IP Address
    if ($REMOTE_ADDR == "") $ip = "no ip";
    else $ip = getHostByAddr($REMOTE_ADDR);
    // Gets the POST Headers - the Flash variables
    $action = $HTTP_POST_VARS['action'] ;
    $email = $HTTP_POST_VARS['email'] ;
    $name = $HTTP_POST_VARS['name'] ;
    $cognome = $HTTP_POST_VARS['cognome'] ;
    $comments = $HTTP_POST_VARS['comments'] ;
    $telefono = $HTTP_POST_VARS['telefono'] ;
    $oggetto = $HTTP_POST_VARS['oggetto'] ;
    //Process the form data!
    // and send the information collected in the Flash form to Your nominated email address
    if ($action == "send") 
    { 
    //Innanzitutto controlliamo la var.le name: 
    $controllo = check_email($email); 
    if ($controllo != "OK") 
    { 
    echo $controllo; 
    //Qui potresti anche far visualizzare una cosa del genere: 
    echo "<BR><A HREF=\"http://www.marikweb.com/homeita/\">Ritorna alla registrazione</A>"; 
    } 
    else 
    { 
    //Ora inseriamo i dati nel DB. 
    //Ovviamente devi creare una tabella in cui inserire i dati ke passi con il post. 
    
    $link_db = mysql_connect($CONFIG['host'],$CONFIG['user'],$CONFIG['pass']); 
    mysql_select_db($CONFIG['dbname']); 
    $sql_insert = "INSERT INTO contact (name,cognome,email,telefono,oggetto,comments) VALUES('$name','$cognome','$email','$telefono','$oggetto','$comments')"; 
    if (mysql_query($sql_insert))
    { 
    echo "OK RIGA INSERITA <br />";
    } 
    else
    {
    die(mysql_error());
    } 
    mysql_close($link_db); 
     
     //
     mail ("$adminaddress","informazioni",
     "Il visitatore ha lasciato le seguenti informazioni \n
     Name: $name 
     Email: $email\n
     Telefono: $telefono 
     Messaggio:
     ------------------------------
     $comments
     
     Logged Info :
     ------------------------------
     Using: $HTTP_USER_AGENT
     Hostname: $ip
     IP address: $REMOTE_ADDR
     Date/Time:  $date","FROM:$email" ) ; 
     
     //This sends a confirmation to your visitor
     mail ("$email","Re:", 
     "Salve $name,\n
    abbiamo ricevuto il suo messaggio e presto sarà contattato.\n
      Saluti dallo Staff di $sitename 
     By
     $siteaddress","FROM:$adminaddress ") ; 
     
     //Confirmation is sent back to the Flash form that the process is complete
     $sendresult = "Thank you. You will receive a confirmation email shortly.";
     $send_answer = "answer=";
     $send_answer .= rawurlencode($sendresult);
     echo $send_answer;
    } 
    
    } 
    ?>
    
    <?php
    $CONFIG['host'] = "localhost";
    $CONFIG['user'] = "rocco";
    $CONFIG['pass'] = "maurizio";
    $CONFIG['dbname'] = "user35512_7777";
    $CONFIG['expire'] = 60;
    $CONFIG['regexpire'] = 24; //in ore
    $CONFIG['expire'] = 60;
    $CONFIG['regexpire'] = 24; //in ore
    $CONFIG['check_table'] = array(
    "name" => "check_global",
    "email" => "check_global"
    );
    function check_email($value)
    {
    global $CONFIG;
    $value = trim($value);
    if (($value == ""))
    {
    echo"Il campo non può essere lasciato vuoto";
    }
    else{
    $query = @mysql_query("SELECT id FROM contact WHERE email='$value'")or die("Errore nella query");
    
    if (@mysql_num_rows($query) != 0) return "Email già utilizzata";
    else return"OK";
    }
    }
    //--------------
    define('AUTH_LOGGED', 99);
    define('AUTH_NOT_LOGGED', 100);
    define('AUTH_USE_COOKIE', 101);
    define('AUTH_USE_LINK', 103);
    define('AUTH_INVALID_PARAMS', 104);
    define('AUTH_LOGEDD_IN', 105);
    define('AUTH_FAILED', 106);
    define('REG_ERRORS', 107);
    define('REG_SUCCESS', 108);
    define('REG_FAILED', 109);
    $conn = @mysql_connect($CONFIG['host'], $CONFIG['user'], $CONFIG['pass']) or die('Impossibile stabilire una connessione');
    @mysql_select_db($CONFIG['dbname']) or die("Errore nel DB");
     ?>
     
    tabella#################################
    [CODE]      
    CREATE TABLE `contact` (
      `id` int(40) NOT NULL default '0',
      `date` datetime NOT NULL default '0000-00-00 00:00:00',
      `name` varchar(50) NOT NULL default '',
      `cognome` varchar(50) NOT NULL default '',
      `email` varchar(100) NOT NULL default '',
      `telefono` varchar(50) NOT NULL default '',
      `oggetto` varchar(100) NOT NULL default '',
      `comments` text NOT NULL,
      `ip` varchar(15) NOT NULL default '',
      PRIMARY KEY  (`id`)
    )
     
    [/CODE]
    
  • Accedi

  • Non hai un account? Registrati

  • Accedi o registrati per effettuare la ricerca.
  • Primo post
    Ultimo post
Home Accedi Registrati
Menu
  • CATEGORIES
  • La Community Connect.gt
  • Presentati alla Community
  • News Ufficiali da Connect.gt
  • Internet News
  • A Scuola Di
  • Digital Marketing
  • Intelligenza Artificiale
  • SEO & GEO
  • Web Marketing e Content
  • Google Analytics e Web Analytics
  • Google Ads & Advertising
  • YouTube
  • TikTok, Instagram e altri Social
  • Google Adsense, Affiliazioni e Guadagno
  • E-Commerce
  • Coding e Sistemistica
  • Help Center: consigli per il tuo progetto
  • Hosting e Cloud
  • Coding
  • CMS & Piattaforme Self-Hosted
  • Annunci e Collaborazioni
  • Annunci Vendita e Acquisto: Pubblicità, Domini, Link e altro
  • Collaborazioni WEB e Lavoro: offro e cerco
  • Impresa, Fisco e Leggi
  • Consulenza Legale e Professioni Web
  • Consulenza Fiscale, Imprese, Startup e P.Iva
  • Gli Off Topic
  • PC, Smartphone e altri Hardware
  • Tutti i Software
  • GT Fetish Cafè
  • Discussioni
  • Non letti 0
  • Recenti
  • Hashtag
  • Popolare
  • Utenti
  • Privacy
  • Termini e condizioni
  • © 2026 Search On Media Group S.r.l.