Page 1 of 1

how to create multiple users with the table php?

Posted: Fri Aug 07, 2009 8:44 pm
by cc_cam
(newbie)
i want to create several users like administrator and moderator at start at the createphptable.php..
tried this but dont work. how to setup to add 2nd values to the insert table?

/
if (mysql_query($createAdminTable)){
$sql = mysql_query("INSERT INTO myAdmin (username, password, last_log_date, account_type)
VALUES('administrator','passwordA', now(),'a')") or die (mysql_error());
$sql = mysql_query("INSERT INTO myAdmin (username, password, last_log_date, account_type)
VALUES('moderator','passwordB', now(),'a')") or die (mysql_error());

Re: how to create multiple users with the table php?

Posted: Fri Aug 07, 2009 9:17 pm
by aceconcepts
First of all your post is quite blunt and not very informative.

Secondly, I don't think many people here are simply going to do your work for you.

Be more tactful about your approach and seem as if you're willing to make an effort.

Just trying to help :D