Ciao a tutti,
ho scritto un programmino in php che mi serviva per il mio sito e funziona. Volevo integrarlo meglio con wordpress e quindi volevo utilizzare le variabili di wordpress.
In quale variabile wordpress salva il risultato di mysql_connect?
Dando un’occhiata ai file, mi pareva di aver capito che la classe che gestisce il db è wpdb e che la proprietà sia wpdb->dbh… ma non credo sia cosଅ
Se nella mia funzione scrivo:
$elencoResult = mysql_query($queryElenco, $wpdb->dbh);
Non funziona…
Mi potete aiutare?
Grazie