Ciao
codice:
$mysqli = new mysqli('http://C:/Program Files (x86)/EasyPHP 2.0b1/mysql/', 'root@localhost', '', 'nomeDb');
$mysqli->autocommit(true);
$mysqli->query("INSERT INTO news (id, data, titolo, news , stato) values(1, 2008-10-13 19:56:30, 'titolonews1', 'news1 news1 news1 news1 news1 news1 news1 news1', true )");
AL POSTO DI 'nomedb' ho inserito il nome del db
L'errore è il seguente
codice:
Warning: mysqli::mysqli() [function.mysqli-mysqli]: (HY000/2005): Unknown MySQL server host 'http: ......
L'errore sta nell'indirizzo del server, ma ho provato ad inserire anche http://localhost e http://127.0.0.1 ma mi resituisce lo stesso tipo di errore.
Devo modificare qualcosa nei file di configurazione?