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 ''www.ebalv.ru'.* TO 'ebalv'@'localhost' WITH GRANT OPTION' at line 1
PHP:
mysql_query("GRANT ALL PRIVILEGES ON '{$website}'.* TO '{$user}'@'localhost' WITH GRANT OPTION");if (mysql_error()) {die(mysql_error());}
Технология: nginx+php5-fpm.