Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
$_POST['cb_tagid'] = 'VALUE';
Please Log in to join the conversation.
$db = JFactory::getDbo();
$user_type = "SELECT * FROM #__animalid WHERE assignedid='0' ORDER BY sealnumber ASC LIMIT 0,1";
$db->setQuery($user_type);
$user_type_detail1 = $db->loadAssoc();
$sealnumber=$user_type_detail1["sealnumber"];
$tagid=$user_type_detail1["tagid"];
$gender=$user_type_detail1["gender"];
$size=$user_type_detail1["size"];
$birthyear=$user_type_detail1["birthyear"];
$homeisland=$user_type_detail1["homeisland"];
$db->setQuery("UPDATE #__comprofiler SET cb_tagid='".$tagid."',cb_gender='".$gender."',cb_size='".$size."',cb_birthyear='".$birthyear."',cb_homeisland = '".$homeisland."' WHERE `user_id`= '[user_id]'");
$db->query();
$db->setQuery("UPDATE #__animalid SET assignedid='[user_id]' WHERE sealnumber='".$sealnumber."'");
$db->query();
$_POST['cb_tagid'] = 'VALUE';
Please Log in to join the conversation.