(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());
how to create multiple users with the table php?
Moderator: General Moderators
how to create multiple users with the table php?
Last edited by cc_cam on Sat Aug 08, 2009 5:11 am, edited 1 time in total.
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Re: how to create multiple users with the table php?
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
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