Visualizzazione dei risultati da 1 a 3 su 3

Discussione: select su 2 tabelle...

  1. #1

    select su 2 tabelle...

    ciao a tutti
    mi trovo in questa situazione dati sulla 1° tabella e campo per il quale devo ordinarli sulla 2° tabella, ho fatto una cosa del genere:

    codice:
    $querytotale="SELECT o.* FROM offerte o WHERE ((o.data >= date_sub(now(), interval $period $val)) AND (o.chiusa='no')) ,
    però non mi funziona mi dice:

    Mysql dice: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' anagrafe a (o.linkcliente=a.id) order by a.ragione_sociale' at1064


    perché, dove sbaglio???


    grazie mille
    PCTLC
    www.pctlc.it
    _______________________________
    Informatica & Telecomunicazioni

  2. #2
    news for me?
    PCTLC
    www.pctlc.it
    _______________________________
    Informatica & Telecomunicazioni

  3. #3
    nulla grazie risolto

    grazie comunque.



    (vedi foto sez amministrazione ricerche_exe.php)
    PCTLC
    www.pctlc.it
    _______________________________
    Informatica & Telecomunicazioni

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.