|
From: Gianluca S. <gi...@gm...> - 2006-03-21 11:57:18
|
On 3/21/06, Adrian Crossley <adr...@he...> wrote: > $sql =3D "INSERT INTO mantis_user_table ( id, username, realname, = email, date_created, access_level, enabled, cookie_string) > VALUES ($id, '$username', '$realname', '$e= mail', '$date_created', $access_level, $enabled, CONCAT( MD5(RAND()), MD5(N= OW())) )"; If the project is in PHP I would prefer using the avaliable mantis API; fro= m core/user_api.php you can use the function: user_create( $p_username, $p_password, $p_email=3D'', $p_access_level=3Dnull, $p_protected=3Dfalse, $p_enabled=3Dtrue, $p_realname=3D'' ) which should prevent you from running into problems if the database will be modified in future relases. Cheers Gianluca |