Code: Select all
$q = array(
"1" => "INSERT INTO reg_users (user_id,username,password,registered,email) VALUES ('', '$name' , '$password' , '$time' , '$email')",
2 => "INSERT INTO profile (username, Name, Location, Gender, Birth_date, registered, profile_pic) VALUES('$name' , 'Name', 'Location', 'Gender', 'Birth Date', $time, 'Picture URL.')",
3 => "INSERT INTO style (main_HEADER_text, main_bgcolor, main_HEADER_fontcolor, main_fontstyle, main_fontface, border_color, border_style, border_size, mod_titlebarBG, mod_titlefontcolor, mod_titlefontface, username) VALUES
('$name', 'White', 'Black', 'Bold', 'Verdana', 'Black', 'Solid', '1', 'White', 'Black', 'Verdana', )")
the thing i want to do is foreach of the of the array vaules,i want the database to do the query.
how can i acheave this?