Your live site doesn’t work at the moment (mysql connection error). But, the problem is here:
$associazioni['suggestions'][] = $row['nome'];
See, the autocomplete plugin is expecting an array, but you are creating an array with the key ‘suggestions’ whose value is another array.
Instead of putting the in array in another array, you should … (the rest of this sentence is left an exercise to the reader)
You’re right, the ‘suggestions’ key should indeed be in there. I confused the different methods. Forget what I said, you PHP is fine
It can’t connect to MySQL though and that’s why it won’t work
<br />
<b>Warning</b>: mysqli_connect() [<a href=‘function.mysqli-connect’>function.mysqli-connect</a>]: (42000/1044): Access denied for user ‘xxxxx’@‘%’ to database ‘xxxxx’ in <b>/home/xxxxx/hosting/xxxxxx/subdomains/xxxxx/xxxxx/xxxxxx.php</b> on line <b>3</b><br />
Database Error: Access denied for user ‘xxxx’@‘%’ to database ‘xxxx’