IT

Input Number Only

<input type=”text” onKeyPress=”if(event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;” name=”Handphone” id=”Handphone”>

MySQL shutdown unexpectedly

Error: MySQL shutdown unexpectedly. This may be due to a blocked port, missing dependencies, The rest of the log: InnoDB: Error: could not open single-table tablespace file .xatpayments.ibd InnoDB: We do not continue the crash recovery, because the table may become InnoDB: corrupt if we cannot apply the log records in the InnoDB log to …

MySQL shutdown unexpectedly Selengkapnya »

Remove Menu WP Admin

put it on your function.php theme add_action( ‘admin_menu’, ‘my_remove_menu_pages’ ); function my_remove_menu_pages() { remove_menu_page( ‘index.php’ ); //Dashboard remove_menu_page( ‘edit.php’ ); //Posts remove_menu_page( ‘upload.php’ ); //Media remove_menu_page( ‘edit.php?post_type=page’ ); //Pages remove_menu_page( ‘edit-comments.php’ ); //Comments remove_menu_page( ‘themes.php’ ); //Appearance remove_menu_page( ‘plugins.php’ ); //Plugins remove_menu_page( ‘users.php’ ); //Users remove_menu_page( ‘tools.php’ ); //Tools remove_menu_page( ‘options-general.php’ ); //Settings }

Woocommerce Cart

<a href=”<?php echo wc_get_cart_url(); ?>” title=”<?php _e( ‘View your shopping cart’ ); ?>”><?php echo sprintf ( _n( ‘%d item’, ‘%d items’, WC()->cart->get_cart_contents_count() ), WC()->cart->get_cart_contents_count() ); ?> – <?php echo WC()->cart->get_cart_total(); ?></a>

mySQL Count Table

$result = mysqli_query($con,”SELECT COUNT(*) FROM TABLE WHERE FIELD LIKE ‘Domain%’;”); $data = mysqli_fetch_array($result); echo $data[0];

Auto Complete Search

<?php $cars = array(“facebook”, “google”); ?> <link rel=”stylesheet” href=”http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css”> <script src=”http://code.jquery.com/jquery-1.10.2.js”></script> <script src=”http://code.jquery.com/ui/1.11.4/jquery-ui.js”></script> <form id=”frm” method=”post”> <input id=”cartag” type=”text” name=”car”> </form> <script> $(function() { var availableTags = <?php echo json_encode($cars); ?>; $( “#cartag” ).autocomplete({ source: availableTags, select: function (e, ui) { if(ui.item.value==’facebook’){ window.location.href = “http://facebook.com”; } else if (ui.item.value==’google’){ window.location.href = “http://google.com”; } } }); …

Auto Complete Search Selengkapnya »

Create Skew CSS

content: ”; display: block; position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; left: 0; transform: skewX(-30deg); background: #8bb0c6;

Image Cover Any Device

<section id=”contactform” style=”background-image: url(img/contact-bg.jpg); background-size: cover;position: fixed;top: 0px;right: 0px;bottom: 0px;left: 0px;”>

×

Powered by WhatsApp Chat

×