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
A

andreast

@andreast
Non seguire Segui
Informazioni
Post
1
Discussioni
0
Condivisioni
0
Gruppi
0
Da chi è seguito
0
Chi segue
0

Post

Recenti Migliore Controverso

  • Ultimi topic di smf
    A andreast
    CMS & Piattaforme Self-Hosted

    patrick91

    Scusate per la mia assenza 😞

    cmq ecco un piccolo script per visualizzare gli ultimi topic di un forum smf

    <?php
    $query = "SELECT * FROM smf_topics ORDER BY ID_TOPIC DESC LIMIT 0,5";
    $row = mysql_query($query);
    echo "<table id=\"ultimipost\">\n
        <thead><tr><th abbr=\"titolo\" scope=\"col\">Titolo Post</th><th scope=\"col\">Autore</th><th abbr=\"orario\" scope=\"col\">Ora Post</th></tr></thead>\n
        <tbody>\n
        ";
    while($result = mysql_fetch_assoc($row)) {
        $id = $result['ID_TOPIC'];
        $board = $result['ID_BOARD'];
        $idlast = $result['ID_LAST_MSG'];
        $query_messaggio = "SELECT * FROM smf_messages WHERE ID_MSG = '$idlast'";
        $row_messaggio = mysql_query($query_messaggio);
        echo "<tr>";
        while ($res = mysql_fetch_assoc($row_messaggio)) {
            $id_msg = $res['ID_MSG'];
            $id_membro = $res['ID_MEMBER'];
            $orario = date("H:i:s - d/m/Y", $res['posterTime']);
            $subject = $res['subject'];
            echo "<td><a href=\"/forum/index.php?topic=$id.msg$id_msg#msg$id_msg\">$subject</a></td>\n";
            $query_membro = "SELECT memberName FROM smf_members WHERE ID_MEMBER = '$id_membro'";
            $row_membro = mysql_query($query_membro);
            while ($res_m = mysql_fetch_assoc($row_membro)) {
                $autore = $res_m['memberName'];
                echo "<td><a href=\"/forum/index.php?action=profile;u=$id_membro\">$autore</a></td>\n";
            }
            echo "<td>$orario</td>\n";
        }
        echo "</tr>\n";
    }
    echo "</tbody>\n";
    echo "</table>";
    ?>
    

    se volete vedere come funziona andate su
    😉

    salve io ho fatto il copia incolla del codice, ma mi dà un messaggio di errore...
    dove sbaglio???

    Parse error: syntax error, unexpected '<' in /miosito.it/home/forum/Sources/Load.php(1739) : eval()'d code(35) : eval()'d code on line 1

    sono un novellino abbiate pietà
    Grazie

  • 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.