Whats wrong with this query?

From: Date: Mon, 10 Nov 2003 16:45:11 +0000
Subject: Whats wrong with this query?
Groups: php.general 
Request: Send a blank email to php-general+get-169050@lists.php.net to get a copy of this message
$addamysqluser = mysql_query("grant select,insert,drop,update,delete,create,index,alter on $_POST[f2] to $_POST[f2]@10.0.0.13 IDENTIFIED by $_POST[f3]"); What is wrong with the above php based mysql_query ? I am trying to add a user to mysql granting just the specified rights to table defined by the $_POST[f2] which is both the table and username and the password is defined by $_POST[f3]. This has been baffleing me for a couple of days now and any help given is very much appreciated. Thank you in advance. Yours Dave C --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.535 / Virus Database: 330 - Release Date: 01/11/2003

« previous php.general (#169050) next »