Ho il mio suto su altervista che ha il
MySQL 4.0.25
Dato che usando questa query:
$ris = mysql_query("SELECT forummesxp FROM infame WHERE id IN (SELECT foto FROM presenti WHERE ip='".$ip."' and logout=0 order by id desc)",$conn) or die("Errore nella query3: " . mysql_error());
Il programma mi dà questo errore:
Errore nella query3: 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 'SELECT foto FROM presenti WHERE ip='82.59.6.21' and logout=0 or
Volevo sapere se era colpa della versione del mysql o della query scritta male.
Grazie