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
D

dj

@dj
Non seguire Segui
Informazioni
Post
8
Discussioni
5
Condivisioni
0
Gruppi
0
Da chi è seguito
0
Chi segue
0

Post

Recenti Migliore Controverso

  • errore query
    D dj
    Coding

    l errore è:
    Unknown column 'm.id_albo' in 'field list'

    grazie


  • errore query
    D dj
    Coding

    ciao a tutti!

    <?php
                                                                    mysql_query("SET CHARACTER SET utf8");
                                                                    mysql_query("SET NAMES utf8");
                                                                    $rowsPerPage = 20;
                                                                    $pageNum = 1;
                                                                    if (isset($_GET['page'])) {
                                                                        $pageNum = $_GET['page'];
                                                                    }
                                                                    $offset = ($pageNum - 1) * $rowsPerPage;
                                                                    $lettera=$_REQUEST['lettera'];
                                                                    if ($lettera == NULL) {
                                                                        $lettera = '';
                                                                    } else {
                                                                        $lettera=$_REQUEST['lettera'];
                                                                    }
                                                                    if ($spec == NULL and $lettera == NULL and $tipo_medico == 1) {
                                                                        $Sqlqr_gl="select * from medici_chirurghi where cognome != '' order by IF (ASCII(LOWER(cognome)) >=ASCII (LOWER('$lettera')),1,2),cognome LIMIT $offset, $rowsPerPage";
                                                                        $query="SELECT COUNT(m.id_albo) AS numrows from medici_chirurghi where cognome != ''";
                                                                    } else if ($spec == NULL and $lettera != NULL and $tipo_medico == 1) {
                                                                        $Sqlqr_gl="select * from medici_chirurghi where cognome != '' and cognome LIKE '$lettera%' order by cognome LIMIT $offset, $rowsPerPage";
                                                                        $query="SELECT COUNT(m.id_albo) AS numrows from medici_chirurghi where cognome != '' and cognome LIKE '$lettera%'";
                                                                    } else if ($spec != NULL and $tipo_medico == 1) {
                                                                        $Sqlqr_gl="select m.* from medici_chirurghi m, matricola_specialita ms, specialita2 s where cognome != '' and s.id_spec = $spec and s.id_spec = ms.id_specialita and m.matricola2 = ms.matricola order by IF (ASCII(LOWER(cognome)) >=ASCII (LOWER('$lettera')),1,2),cognome LIMIT $offset, $rowsPerPage";
                                                                        $query="SELECT COUNT(m.id_albo) AS numrows from medici_chirurghi m, matricola_specialita ms, specialita2 s where cognome != '' and s.id_spec = $spec and s.id_spec = ms.id_specialita and m.matricola2 = ms.matricola";
                                                                    } else if ($spec == NULL and $lettera == NULL and $tipo_medico == 2) {
                                                                        $Sqlqr_gl="select * from medici_odontoiatri where cognome != '' order by IF (ASCII(LOWER(cognome)) >=ASCII (LOWER('$lettera')),1,2),cognome LIMIT $offset, $rowsPerPage";
                                                                        $query="SELECT COUNT(m.id_albo) AS numrows from medici_odontoiatri where cognome != ''";
                                                                    } else if ($spec == NULL and $lettera != NULL and $tipo_medico == 2) {
                                                                        $Sqlqr_gl="select * from medici_odontoiatri where cognome != '' and cognome LIKE '$lettera%' order by cognome  LIMIT $offset, $rowsPerPage";
                                                                        $query="SELECT COUNT(m.id_albo) AS numrows from medici_odontoiatri where cognome != '' and cognome LIKE '$lettera%'";
                                                                    } else if ($spec != NULL  and $tipo_medico == 2) {
                                                                        $Sqlqr_gl="select m.* from medici_odontoiatri m, matricola_specialita ms, specialita2 s where cognome != '' and s.id_spec = $spec and s.id_spec = ms.id_specialita and m.matricola2 = ms.matricola order by IF (ASCII(LOWER(cognome)) >=ASCII (LOWER('$lettera')),1,2),cognome LIMIT $offset, $rowsPerPage";
                                                                        $query="SELECT COUNT(m.id_albo) AS numrows from medici_odontoiatri m, matricola_specialita ms, specialita2 s where cognome != '' and s.id_spec = $spec and s.id_spec = ms.id_specialita and m.matricola2 = ms.matricola";
                                                                    }
                                                                    echo "<div style=display:none>".$Sqlqr_gl."</div>";
                                                                    $qr_gl=mysql_query($Sqlqr_gl,$connessione)or die(mysql_error());
                                                                    while($r_gl=mysql_fetch_array($qr_gl,MYSQL_ASSOC)) {
                                                                        if ($r_gl['cognome'] != NULL) {
                                                                            ?>
    
    <?php 
                                                            if ($idmenu == '44') {
                                                                $tipo_medico = '2';
                                                            } else if ($idmenu == '45') {
                                                                $tipo_medico = '1';
                                                            }
                                                            $result=mysql_query($query) or die('Error, seconda query failed');
                                                            $row=mysql_fetch_array($result, MYSQL_ASSOC);
                                                            $numrows = $row['numrows'];
                                                            $maxPage = ceil($numrows/$rowsPerPage);
                                                            // print the link to access each page
                                                            $self = $_SERVER['PHP_SELF'];
                                                            $nav = '';
                                                            for($page = 1; $page <= $maxPage; $page++) {
                                                                if ($page == $pageNum) {
                                                                    $nav .= "<strong><a href='#'>.$page.</a></strong>"; // no need to create a link to current page
                                                                } else {
                                                                    $nav .= " <a href=\"$self?page=$page&idmenu=$idmenu&lettera=$lettera&spec=$spec&tipomedico=$tipo_medico\">.$page.</a> ";
                                                                }
                                                            }
                                                            if ($pageNum > 1) {
                                                                $page = $pageNum - 1;
                                                                $prev = " <a href=\"$self?page=$page&idmenu=$idmenu&lettera=$lettera&spec=$spec&tipomedico=$tipo_medico\">&lt;</a> ";
                                                                $first = " <a href=\"$self?page=1&idmenu=$idmenu&lettera=$lettera&spec=$spec&tipomedico=$tipo_medico\">[First Page]</a> ";
                                                            } else {
                                                                $prev  = '&nbsp;'; // we're on page one, don't print previous link
                                                                $first = '&nbsp;'; // nor the first page link
                                                            }
                                                            if ($pageNum < $maxPage) {
                                                                $page = $pageNum + 1;
                                                                $next = " <a href=\"$self?page=$page&idmenu=$idmenu&lettera=$lettera&spec=$spec&tipomedico=$tipo_medico\">&gt;</a> ";
                                                                $last = " <a href=\"$self?page=$maxPage&idmenu=$idmenu&lettera=$lettera&spec=$spec&tipomedico=$tipo_medico\">[Last Page]</a> ";
                                                            } else {
                                                                $next = '&nbsp;'; // we're on the last page, don't print next link
                                                                $last = '&nbsp;'; // nor the last page link
                                                            }
                                                        ?>
    

    l errore è : Error, seconda query failed
    mi potreste dare una mano? grazie a tutti


  • sql select su più tabelle
    D dj
    Coding
    $qr1=mysql_query("select * from medici_chirurghi, medici_odontoiatri where cognome = '$parola' OR nome = '$parola' order by cognome asc LIMIT $offset, $rowsPerPage",$connessione)or die(mysql_error());
    

    vorrei fare la select in due tabelle
    come si fa?

    grazie
    ciao


  • php sql
    D dj
    Coding
    $qr1=mysql_query("select * from medici_chirurghi, medici_odontoiatri where cognome = '$parola' OR nome = '$parola' order by cognome asc LIMIT $offset, $rowsPerPage",$connessione)or die(mysql_error());
    

    vorrei fare la select in due tabelle
    come si fa?

    grazie
    ciao


  • problema mysql_result
    D dj
    Coding

    a ki dovesse servire ho risolto cosi:

    <div> 
                <?
                $query = "SELECT c.CAS_ID, c.TITOLO, i.NOME,c.DES_BREVE,c.DESC_ESTESA,c.OFFERTA_SPECIALE FROM `CASE` c LEFT JOIN `IMMAGINI` i ON c.CAS_ID = i.CAS_ID where VISIBLE = 1 and DEF = 1 and HOME = 1 order by c.CAS_ID DESC";
                $result = mysqli_query($mysqli , $query);
                $num = mysqli_num_rows($result);
                $i=0;
                $count = 1;
                 while ($row = mysqli_fetch_assoc($result)) {?>
                        <a style="border:1px solid #e2001a; margin-bottom:10px; display:block;" class="box_case" href="javascript:;" onClick="showCasa('bigbox_<? echo $row["CAS_ID"];?>'); updateStatCasa(<? echo $row["CAS_ID"];?>)"> 
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td style="padding:15px 0 15px 15px; cursorointer;" width="120" align="center" valign="top"><img src="<?php echo $row["NOME"]; ?>" height="90" /></td>
                                    <td style="padding:15px 15px 15px 10px; cursorointer;" valign="top">
                                        <span style="font-weight:bold; font-size:12px; color:#13007d;"><?php echo $row["TITOLO"]; ?></span> 
                                        <br />
                                        <?php echo $row["DES_BREVE"]; ?>
                                    </td>
                                </tr>
                            </table>
                        </a>
                    <? $i++;$count++;
                } ?>
            </div>
    

  • problema mysql_result
    D dj
    Coding

    provato e riprovato ma niente...
    scusa riusciresti a farmi un esempio?
    grazie mille


  • problema mysql_result
    D dj
    Coding

    sul sito mi esce qst errore: Warning: mysql_result() expects parameter 1 to be resource, object given in

    codice da me usato :

    <div> 
                <?
                $query = "SELECT c.CAS_ID, c.TITOLO, i.NOME,c.DES_BREVE,c.DESC_ESTESA,c.OFFERTA_SPECIALE FROM `CASE` c LEFT JOIN `IMMAGINI` i ON c.CAS_ID = i.CAS_ID where VISIBLE = 1 and DEF = 1 and HOME = 1 order by c.CAS_ID DESC";
                $result = mysqli_query($mysqli , $query);
                $num = mysqli_num_rows($result);
                $i=0;
                $count = 1;
                while ($i < $num && $i <5) {
                    $id_case[] = mysqli_result($result,$i,"CAS_ID");
                    ?>
                        <a style="border:1px solid #e2001a; margin-bottom:10px; display:block;" class="box_case" href="javascript:;" onClick="showCasa('bigbox_<? echo mysql_result($result,$i,"CAS_ID");?>'); updateStatCasa(<? echo mysql_result($result,$i,"CAS_ID");?>)"> 
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td style="padding:15px 0 15px 15px; cursor:pointer;" width="120" align="center" valign="top"><img src="<?php echo mysql_result($result,$i,"NOME"); ?>" height="90" /></td>
                                    <td style="padding:15px 15px 15px 10px; cursor:pointer;" valign="top">
                                        <span style="font-weight:bold; font-size:12px; color:#13007d;"><?php echo mysql_result($result,$i,"TITOLO"); ?></span> 
                                        <br />
                                        <?php echo mysql_result($result,$i,"DES_BREVE"); ?>
                                    </td>
                                </tr>
                            </table>
                        </a>
                    <? $i++;$count++;
                } ?>
            </div>
    

    nella riga 5 e 6 ho aggiunto la ' i ' alla funzione mysql e funziona, ma nella mysql_result nn va..
    sapete darmi una mano?
    grazie a tutti!!


  • ciao
    D dj
    Presentati alla Community

    a tutti!!

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