/etc/apache2/site-avaliable/000-xxxxx<Directory "path/to/laravel/project/public">
Allowoverride All
</Directory>sudo a2enmod rewritesystemctl restart apache2
/etc/apache2/site-avaliable/000-xxxxx<Directory "path/to/laravel/project/public">
Allowoverride All
</Directory>sudo a2enmod rewritesystemctl restart apache2
table {
text-align: left;
position: relative;
border-collapse: collapse;
}th {
background: white;
position: sticky;
top: 0; /* Don't forget this, required for the stickiness */
box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
}
sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty universe'
sudo apt-get update
sudo apt install mysql-server-5.6 mysql-client-5.6ที่มา
https://itectec.com/ubuntu/ubuntu-install-mysql-5-6-on-ubuntu-16-04/
<span><?=eregi_replace($val,'<font style="color:#ff0000">'.$val.'</font>',$rno );?></span>
$("#hideit").click(function() {
var table = $('#myTable').DataTable();
$.fn.dataTable.ext.search.push(
function(settings, data, dataIndex) {
return $(table.row(dataIndex).node()).hasClass("hidden");
}
);
table.draw();
});
$("#showit").click(function() {
var table = $("#myTable").DataTable();
$.fn.dataTable.ext.search.pop();
table.draw();
});
} );
Array
(
[0] => Array
(
[id] => 7
[name] => เงินเบิก 1
[detail] => เงินเบิก
)
[1] => Array
(
[id] => 8
[name] => เงินเบิก 2
[detail] => ค่าเครื่องแบบ
)
[2] => Array
(
[id] => 9
[name] => เงินเบิก 3
[detail] => ประกันอุบัติเหตุ
)
[3] => Array
(
[id] => 10
[name] => เงินเบิก 4
[detail] => ร้านค้า
)
[4] => Array
(
[id] => 11
[name] => เงินเบิก 5
[detail] => ค่าอบรม
)
) if( in_array($rd['id'], array_column($arrd, 'deduct_no'))){
echo " checked=true";
}
swal.fire({
title:'เพิ่มวันหยุดประจำปี',
width: 600,
showCloseButton: true, // show button X on top left
showCancelButton: false, /// show cancel
showConfirmButton: false, /// show ok button
allowOutsideClick: false, /// don't click outsize
onClose: Refreshs, /// event on close
html: '<iframe src="holiday.php?_method=POST&date='+date+'" width="100%" height="500" src="" ></iframe>',
}) ;
function Refreshs() {
window.location.reload();
}
mysql_query("DROP TABLE IF EXISTS $table ")
mysql_query("CREATE TABLE $table select * from stock where 1 = 2 ")
mysql_query("ALTER TABLE `$table` ADD UNIQUE INDEX ( `code_no`)")
<style>
.error {
border:solid red 1px;
}
</style>
<input type="text" class="validate">
<script>
$(".validate").each(function(i,v) {
if(v.value == "") {
$(this).addClass('error');
}else{
$(this).removeClass('error');
}
});
</script>