[WIKI] Creare delle functions personalizzate
Inviato: 25/10/2011, 14:56
Sito di supporto italiano per phpBB
https://www.phpbbitalia.net/forum/
https://www.phpbbitalia.net/forum/viewtopic.php?f=190&t=5617
Codice: Seleziona tutto
SQL ERROR [ mysql4 ]
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 '' at line 3 [1064]
SQL
SELECT user_id, user_avatar, user_avatar_type,user_avatar_width,user_avatar_height FROM avphpbb_users WHERE user_id =
Bisogna vedere il codice che hai usato e come richiami la funzione. L'errore sembra indicare che manca l'user_id nella query.PGreca ha scritto:Ciao, ho provato varie volte (da quando l' ho letta) a seguire questa guida, e utilizzando il codice da te postato mi da sempre questo errore.Ho provato a cambiare " WHERE user_id =" . $id ; ", in tanti modi, ma non so come ovviare al problema.Codice: Seleziona tutto
SQL ERROR [ mysql4 ] 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 '' at line 3 [1064] SQL SELECT user_id, user_avatar, user_avatar_type,user_avatar_width,user_avatar_height FROM avphpbb_users WHERE user_id =
Che mi tocca fare?