All you need to do is insert the user into the user table in your main mysql database. Then, if you want to add them to your database, insert another line into the db table. The column names are fairly descriptive, so I won't go into any detail here...
HTH, Mikey > -----Original Message----- > From: The.Rock [mailto:[EMAIL PROTECTED] > Sent: 31 July 2003 23:57 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] PHP Script for Mysql > > > Don't know if this is possible but.... > > Is it possible to create a PHP script to create a user in MySQL > database and > then grant that user specific access to the DB? I'm trying to create an > installer for a php program and building it so that dummies can install it > if need be. > > I know that PHPMyAdmin creates users with an interface, but I'm > just trying > to do this by having the user go to > www.server.com/program/install.php , and > this would setup the user account, grant access and then install the > program. > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php