I have this code that insert user and user group map in my database. But this doesn't work.
What's wrong with this:
What's wrong with this:
<?php
$db = &JFactory::getDBO();
$query =
" INSERT INTO prefix_users (id,name,username,email,password) VALUES ('{$form->data['id']}','{$form->data['name']}','{$form->data['username']}','{$form->data['email']}','{$form->data['password']}'), INSERT INTO prefix_user_usergroup_map (user_id,group_id) VALUES ('{$form->data['id']}',6)";
$db->setQuery($query);
$db->query();
?>