Ordinato, spero mi aiuti a chiarire gran parte dei dubbi...
Ora avrei un nuovo problema però... un errore di sintassi in una select.
Codice PHP:
$table = $_GET['table'];
$id = $_GET['id'];
mysql_select_db($database_db, $db);
$query_rsSQL = "SELECT * FROM $table WHERE id=$id";
$rsSQL = mysql_query($query_rsSQL, $db) or die(mysql_error());
$row_rsSQL = mysql_fetch_assoc($rsSQL);
errore: 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 'WHERE id=1' at line 1
Credo che l'errore sia nel passare la $table alla query... se nella select anzichè $table inserisco il nome della tabella tutto funge.
Ho provato anche con qualcosa del tipo:
Codice PHP:
"SELECT * FROM ".$table." WHERE id=".$id."";
oppure
Codice PHP:
sprintf("SELECT * FROM %s WHERE id=%d", $table, $id);
avete qualche idea? grazie ancora in anticipo.