CREATE TRIGGER `Emp_upd` AFTER UPDATE ON `Employee`
FOR EACH ROW BEGIN
INSERT INTO `History` SET Table = 'Employee', Operation = 'Update', Emp_ID = OLD.Emp_ID, Person_ID = OLD.Person_ID;
END
<a href="page1.html#toSection">ToSection</a>
<a href="page2.html#toSection">ToSection</a>
$de_donat = new \app\models\donat();
$dechart = $de_donat->getUserDonat($this->usid, 5, 5);
foreach($dechart as $v) {
$data[] = $v->sum;
}
echo json_encode($data)."<br>";
$user_category = UserCategory::where('user_id', Auth::user()['id'])
->where('category_id', $request->post('category_id'))
->first();
if(!$userCategory) {
$user_category = new UserCategory();
$user_category->user_id = Auth::user()['id'];
$user_category->category_id = $request->post('category_id');
if ($user_category->save()) {
return response()->json(['response' => 'Category success']);
}
}
server {
listen 80;
server_name *.my.com;
location / {
proxy_pass http://2_server_ip;
}
}
server {
listen 443 ssl;
server_name *.my.com;
location / {
proxy_pass https://2_server_ip;
}
}