Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    Risorsa mysql non valida???

    Salve a tutti, ho questo codice che deve prelevare il nome utente dalla tabella del forum, in base alla password e

    Codice PHP:
    $query "SELECT username FROM mybb_users WHERE uid = $utente AND loginkey = $logkey";
    $result mysql_query($query$db);
    $row mysql_fetch_array($result); 
    Però mi da l'errore "Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource"

    Se tolgo la clausula AND(e quello che ne deriva) invece funziona perfettamente... PERCHè???

  2. #2
    prova così

    Codice PHP:
    $query "SELECT username FROM mybb_users WHERE uid = '$utente' AND loginkey = '$logkey'";
    $result mysql_query($query$db);
    $row mysql_fetch_array($result); 
    http://codecanyon.net/category/all?ref=Manuelandro
    And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
    memories to be made

  3. #3
    Grazie mille!

    Maledetti apici... AAAH, ma adesso mi sentono!

    E' tutta la sera che ci divento scemo...

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.