È possibile utilizzare un valore dinamico all'interno di un comando SELECT FROM sql?Seleziona tabella (FROM) per stringa
Database->prepare("SELECT bomb FROM ? WHERE id=?")
->execute($strTable,$strID);
risultato:
Fatal error: Uncaught exception Exception with message Query error: 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...
Non sono sicuro di ciò che questo ha a che fare con PHP ... – BoltClock
Perché? Qualunque comando sql accede direttamente a mysql senza livelli intermedi? – mate64
a proposito di quale libreria stai usando? – RageZ