Tuesday 5 January 2021
SELECT
*,
COUNT(IF(date >= curdate(), 1, NULL)) 'todaycount',
COUNT(IF(yearweek(date) = yearweek(curdate()), 1, NULL)) 'weekcount',
COUNT(IF(month(date) = month(curdate()), 1, NULL)) 'monthcount',
COUNT(IF(date <= curdate(), 1, NULL))...
Monday 4 January 2021
Col 8
Col 2
Col 2
Card Body
Saturday 2 January 2021
.myelement {
background: rgb(68, 68, 68) url("images/myimage.jpg") no-repeat scroll center center / cover;
width: 100%;
display: block;
}
@media (min-width: 576px) {
.myelement {
height: 240px;
}
}
@media (min-width: 768px) {
.myelement {
height:...
Tuesday 24 November 2020
.myclass:not(:last-child)::after {
content: ", ";
}
/* class1
class2
class3 */
Tuesday 24 November 2020
jQuery(function(){
jQuery('.showsinglediv').click(function(){
jQuery('#divfirst').toggle();
jQuery('#divsecond').toggle();
});
});
// Click
// First Div
// Second Div
Sunday 11 October 2020
column
column
column
Sunday 27 September 2020
Show / Hide
Content
$(document).ready(function() {
$('.showhidelink').click(function(e) {
$('.showhide').toggle();
});
});
Sunday 6 September 2020
/* */
$(document).ready(function(){
$("#myform").on("click", function(){
$(".myclass").fadeIn();
});
});
Tuesday 21 July 2020
Search:
find / -type d -name myfolder
Output:
/home/admin/public_html/example.com/myfolder
Delete:
rm -rf /home/admin/public_html/example.com/myfolder
Tuesday 23 June 2020
Select Image
$('#file').on('change',function(){
var fileName = $(this).val();
$(this).next('.custom-file-label').html(fileName);
});
Tuesday 10 March 2020
javascript:(function(){f='https://www.reddit.com/submit?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title);a=function(){if(!window.open(f+'noui=1&jump=doclose','enter','location=yes,links=no,scrollbars=n...
Sunday 8 March 2020
Tuesday 11 February 2020
Option 1
Open C:\xampp\readme.txt
+ PHP 7.4.1 (VC15 X86 64bit thread safe) + PEAR
+ Apache 2.4.41
+ MariaDB 10.4.11
+ phpMyAdmin 5.0.1
+ Tomcat 7.0.99
+ XAMPP Control Panel Version 3.2.4.
+ OpenSSL 1.1.0g
+ ADOdb 518a
Option 2
Create a php file...
Wednesday 25 December 2019
Sans-serif fonts
Arial, Comic Sans, Trebuchet MS, Verdana
Serif fonts
Georgia, Times New Roman
Monospace fonts
Courier New
Wednesday 11 December 2019
//[color=#BB0000]Font color example[/color]
//[size=24]Font size example[/size]
//[b]Bold text[/b]
//[i]Italic text[/i]
//[u]Underlined text[/u]
//[s]Text with a strikethrough[/s]
//[small]Small defines smaller text[/small]
//[align=right]Align right example[/align]...
Wednesday 2 October 2019
blockquote {
width: 98%;
overflow: hidden;
display: block;
border-left: 5px solid #b9c5ca;
background-color: #e4ecef;
color: #6b6868;
padding: 24px;
margin: 22px;
font-style: oblique;
}
Sunday 28 July 2019
C:/wamp/apps/phpmyadmin/libraries/config.default.php
Replace this line of code: $cfg['LoginCookieValidity'] = 1440;
With this line of code: $cfg['LoginCookieValidity'] = 3600;
C:/wamp/bin/php/phpVER/php.ini
Replace this line of code:...
Thursday 11 July 2019
.dropdown-toggle::after{
display: inline-block;
font: normal normal normal 14px/1 FontAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
content:"\f078";
border-top: 0;...
Tuesday 18 June 2019
.modal-open {
overflow: visible;
}
.modal-open,
.modal-open .fixed-top {
height: 63px;
padding-left: 0!important;
padding-right: 0!important;
margin: 0!important;
}
Saturday 15 June 2019
randomcolor {/foreach}
* -------------------------------------------------------------
*/
function smarty_function_randomcolor($params, Smarty_Internal_Template $template)
{
$colors =...