daredavil07
Addict
- Joined
- Aug 24, 2018
- Posts
- 63
- Reaction
- 17
- Points
- 83
Hi po mga bossing, gusto ko po sanang makita agad yung changes ng update after submit sa same page kung saan ako nag update. Nag research po ako ay ito yung nakita ko, pero di po ako binabalik sa same profile page pag nagupdate po ako. Lumalabas lang yung prompt na "Updated!" tas blank page na after click ok.
May nakita rin po ako dito: You do not have permission to view the full content of this post. Log in or register now.
pero date naman yung binabato.
Salamat po mga bossing!
PHP:
$query = "UPDATE firm.emp SET groupmem='$groupmem', grouptask='$grouptask' WHERE emp_id='".$_POST['emp_id']."'";
$result = mysqli_query($conn, $query);
{
echo '<script>';
echo 'alert("Updated!");';
echo 'location.href="profile.php?emp_id=". mysqli_insert_id()'; //di gumana
echo '</script>';
Code:
<script type="text/javascript">
function UpdateAndGetId($query)
{
mysqli_query(str_replace("SET", "SET emp_id = LAST_INSERT_ID(emp_id),", $query));
return mysqli_insert_id();
}
</script>
May nakita rin po ako dito: You do not have permission to view the full content of this post. Log in or register now.
pero date naman yung binabato.
Salamat po mga bossing!