Scroll to top

Blog

I would like to discuss on whatever your requirement will be. Also I feel pleasure to be a part on that. So let’s just the conversation and finish this in efficient way.

How to create table in database via wordpress plugin code?

 /* ++++++ Create a table +++++++*/ function create_admin_table(){global $wpdb; $create_cases_table_name = $wpdb->prefix . “jaspreetsingh”; $create_cases_table_query = “CREATE TABLE $create_cases_table_name (  ID mediumint(9) NOT NULL AUTO_INCREMENT,  name text NOT NULL,  phone

Read More »

How to get multiple values from ajax in wordpress?

Get multiple values from ajax in wordpress. Paste this code in main file.  function single_user_data(){ var ajax = “https://wpcodekit.com/wp-admin/admin-ajax.php”;    var data = { ‘action’ : “get_single_use”, ‘ID’: user_id }

Read More »

How to create stylish table with CSS :nth-child() Selector with easy-way?

create table with CSS :nth-child() Selector <html> <head> <style> .container{  margin:auto;  width:80%; } .main-row{  width:20%;  float:left;  background-color:#0AA52D;  text-align:center;  padding:10px 0px; color:white; } .col-2{  width:20%;  float:left;  text-align:center;  padding:10px 0px;  border-bottom:1px solid #f1f1f1; } .row{  width:100%;

Read More »

use javascript in php or how to redirect on any page in php <?php echo ‘<script LANGUAGE=”JavaScript”>window.location.href=”‘.site_url().’/loginform“;</script>’; ?>

Read More »

How to submit form with anchor tag (link) in jquery?

Submit a form with anchor tag (a and link) in jquery <form method=”get” action=””> <input type=”text” name=”ID” value=”jassi”> <input type=”text” name=”con” value=”singh”> <a href=”” onclick=”this.closest(‘form’).submit();return false;” value=”CONSTRUCTION CONTRACT”>CONSTRUCTION CONTRACT</a> </form>

Read More »