Skip to main content

Posts

Showing posts from 2015

Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the "Sidebar Top" sidebar.

Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the "Sidebar Top" sidebar. add this code:-wp-include/config.php   change: define('WP_DEBUG', flase);  to below code here: // Enable WP_DEBUG mode define('WP_DEBUG', true); // Enable Debug logging to the /wp-content/debug.log file define('WP_DEBUG_LOG', true); // Disable display of errors and warnings  define('WP_DEBUG_DISPLAY', false); @ini_set('display_errors',0);

google colour code

google  colour code blue :- #4285f4 brown :- #616161 white :- #ffffff black :- #212121 background google :- #f5f5f5 youtube red :- #f5f5f5 background :#EEEEEE other:- #7D7D7D, #7fd3f8, #16A765, #4485F5, #D54937, #e5e5e5, #7759ae, #e5, #fff9c4, #e0e0e0, #e0e0e0, #1e88e5, #1e88e5, #bbb, #4d90fe, #4d90fe, #f0c36d, #333, #202020, #d6e9f8, #602019, #4d90fe, #4787ed, #357ae8, #357ae8, #dd4b39, #c53727, #398bf2, #3689ee, #f8f8f8, #b8b8b8, #f3f3f3, #f6f6f6, #eee, #bfbfbf, #e0e0e0

Register Menus in wordpress

Register Menus in wordpress  function register_my_menu() {   register_nav_menu('header-menu',__( 'Header Menu' )); } add_action( 'init', 'register_my_menu' ); Register Menus in wordpress  function register_my_menus() {   register_nav_menus(     array(       'header-menu' => __( 'Header Menu' ),       'extra-menu' => __( 'Extra Menu' )     )   ); } add_action( 'init', 'register_my_menus' );

Register Sidebars in wordpress

Register Sidebars in wordpress function custom_sidebar() { $args = array( 'id'            => 'sidebar-aside', 'name'          => __( 'saddam hussain  ', 'text_domain' ), 'description'   => __( 'right side baar .', 'text_domain' ), 'before_title'  => '<h3 class="widget-title">', 'after_title'   => '</h3>', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget'  => '</aside>', ); register_sidebar( $args ); } add_action( 'widgets_init', 'custom_sidebar' );

Custom tool bar sub menu by Saddam Hussain Saifi

Custom tool bar sub menu by Saddam Hussain Saifi  function custom_toolbar() { global $wp_admin_bar; $args = array( 'id'     => 'saddam', 'title'  => __( 'Saddam help', 'text_domain' ), ); $wp_admin_bar->add_menu( $args ); $args = array( 'id'     => 'child-menu', 'parent' => 'saddam', 'title'  => __( 'website', 'text_domain' ), 'href'   => 'http://imeandmyselfno1.blogspot.com/', );   $wp_admin_bar->add_menu( $args ); } add_action( 'wp_before_admin_bar_render', 'custom_toolbar', 999 );

Custom tool bar in wordpress by saddam hussain saifi

Custom tool bar in wordpress  by saddam hussain saifi function custom_toolbar() { global $wp_admin_bar; $args = array( 'id'     => 'saddam123321 ', 'title'  => __( 'saddam help ', 'text_domain' ), 'target'  => '_blank', 'href'   => 'http://imeandmyselfno1.blogspot.com/', ); $wp_admin_bar->add_menu( $args ); } add_action( 'wp_before_admin_bar_render', 'custom_toolbar', 999 );

PHP STRING FUNCTION WITH OUTPUT AND EXAMPLE

PHP STRING FUNCTION  WITH OUTPUT AND EXAMPLE  <?php   $var="my name is saddam hussain saifi ";   print_r(explode("a",$var)); //output:Array ( [0] => my n [1] => me is s [2] => dd [3] => m huss [4] => in s [5] => ifi )       echo crypt($varws);//output:-$1$m5/.1//.$KRawtTgnzzScShDJN3aHa.     echo crc32($var);//output:-1732983884  echo count_chars($var ,4);//output;-!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`bcgjklopqrtvwxz{|}~€ ‚ƒ„…†‡ˆ‰Š‹Œ Ž ’“”•–—˜™š›œ žŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ    echo convert_uuencode($var);//output:-@;7D@;F%M92!I      echo convert_uudecode($var);// output:d4P L@M     echo convert_cyr_string($var,'m','a');       echo chunk_split($var,2,"(sam)");//output:-my(sam) n(sam)am(sam)e (sam)is(sam) s(sam)ad(sam)da(sam)m (sam)hu(sam)ss(sam)ai(sam)n (sam)s...

Minimum and maximum number with - and + 500 in Mysql and Sql query and Find out table scheema of our database in Mysql and sql query and Find out all table name of our database in Mysql and sql query and Find out current date and time in mysql and sql help of sql query

Minimum and maximum number with - and + 500 in Mysql and Sql query:- syntax:-  SELECT MIN(Used)-500 , max(Used)+500 FROM audit Find out current date and time in mysql and sql help of sql query:- syntax:- SELECT now() Find out database name in Mysql and sql query:- syntax:-  SELECT DATABASE(); Find out all table name of our database in Mysql and sql query:- syntax:- SHOW TABLES; Find out   table scheema   of our database in Mysql and sql query:- syntax:- DESCRIBE <table name>;

Secound and third highest number in Mysql and Sql query and Count row of a specific coloumn in table in Mysql and Sql query and Find out minimum value of a specific column in Mysql and sql query and Find out minimum and maximum value of a specific column in Mysql and sql query

Secound and third highest number in Mysql and Sql query:- syntax:- SELECT Budget FROM customer order by budget DESC LIMIT 1,2 Count row of a specific coloumn in table in php syntax:- SELECT COUNT(Used) as a FROM audit Find out minimum value of a specific column in Mysql and sql query:- syntax:- SELECT MIN(Used) as a FROM audit Find out minimum and maximum value of a specific column in Mysql and sql query:- syntax:- SELECT MIN(Used) , max(Used) FROM audit

PHP browser base compiler and online editer script in php

PHP browser base compiler and online editer script in php here you need two file like :- index.php demo.php  index.php  into copy all code and paste it demo.php is blank in same folder    <?php  if(isset($_POST['done']))  {  $file = "demo.php";  $fp = fopen($file, 'w');  $content = $_POST['txt_data'];  fwrite($fp, $content);   fclose($fp);   }  ?> <html>  <head> <script type="text/javascript"> function run() { document.saddam.txt_data.value = document.saddam.txt_html.value;  } </script>   <title>Try It yourself Online Editor</title>   </head>   <body>   <form name="saddam" id="saddam" method="post" action="" >     <table width="100%" cellspacing="0" cellpadding="0" border="1">     <tr >       <td> <input type="submit" name="done" value="run" ...
Form validation html and javascript <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <style> .main { height:auto;//100px; width:300px; //border:1px solid #FF0000; } .msg { height:20px; width:200px; //border:1px solid black; color:red; display:none; } </style> <script language="javascript" type="text/javascript"> function hide() { document.getElementById('m').style.display="none"; document.getElementById('m1').style.display="none"; } function check() { var f=document.getElementById('fn').value; var l=document.getElementById('ln').value; if...

Date format in javascript and html by saddam

Date format in javascript and html by saddam  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> D.O.B: <select> <script language="javascript" type="text/javascript"> for(var day=1;day<=31;day++) { document.write("<option>"+day+"</option>"); } </script> </select> <select> <script language="javascript" type="text/javascript"> var month=new Array('jan','Feb','Mar','Apr','Mar','May','Jun','Jul','Aug','Oct','Nov','Dec'); for(var i=0;i<month.length;...

Array in javascript by saddam

Array in javascript  by saddam <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <script language="javascript" type="text/javascript"> var num=new Array(1,2,3,4,5,6,'wahi','mukesh','veerender'); for(i=0;i<num.length;i++) { document.write(num[i] +"<br>"); } </script> </body> </html>

Check input box value in javascript

Check input box value in javascript <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script language="javascript" type="text/javascript"> function check() { var nf=document.getElementById('f').value; var nl=document.getElementById('l').value; alert(nf +" "+nl); document.write(nf +" "+nl); } </script> </head> <body> <form action="" method=""> F. Name:<input type="text" id="f"/><br/> L. Name:<input type="text" id="l"/><br/> <input type="submit" name="sub" id=...

__construct() in php

__construct() in php  <?php class saddam { public $sname; public function __construct( $name )   {   $this->sname=$name;    } public function sanjay ( )   {   echo "sanjay is my friends ";    } }  $myobj=new saddam("sanjay"); ?>

Prime number Program in php by saddam

Prime number Program in php  by saddam   <?php $sam=11; for( $j = 2; $j <= $sum; $j++ ) { for( $k = 2; $k < $j; $k++ ) { if( $j % $k == 0 ) { break; } } if( $k == $j ) echo “Prime no is: “, $j, “<br>”; }  ?> output:- Prime no is:2; Prime no is:3; Prime no is:5; Prime no is:7; Prime no is:11; 

Create new array with the help of arrar()

Create new array with the help of arrar() <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>array in php by saddam</title> </head> <body> Create new array with the help of arrar() <?php $saddam=array("saddam","hussain","saifi","from","ramnagar");  foreach($saddam as $sam)  { echoh $sam."<br>";         }      ?> </body> </html>

Create array element by element

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> Create simple array in php  <?php  // create array element by element  $saddam[0]="saddam";  $saddam[1]="sanjay";  $saddam[2]="hitesh";  $saddam[3]="sanjay";  $saddam[4]="kuldip";  echo "my group friends name is ";  for($i=0;$i<=4;$i++){      echo $i." ". $saddam[$i]."</br>";          }  ?> </body> </html> output should be like this :-  create simple array in php my group friends name is 0 saddam 1 sanjay 2 hitesh 3 sanjay 4 kuldip

ANgular js by saddam basic tutorial

ANgular js  by saddam basic tutorial <!DOCTYPE > <html  ng-app>// create ng-app for angular js area envirment <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Angular js</title> </head> <body> <div class="conteiner"> Enter Name: <input type="password"  ng-model="name"> //here declered ng model as a obect... <ul> <li>{{name}} </ul> </div> <script type="text/javascript" src="angular.js"></script> <!--// angularjs file --> </body> </html>

Extends class in php with multiple object

 Extends class in php with multiple object   <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>oops in php by saddam</title> </head> <body> creat many  object in one class <?php class collage { public $name, $age, $clss,$address; function __construct($n,$a,$c,$ad)     {         $this->name=$n;         $this->age=$a;         $this->clss=$c;         $this->address=$ad;      } } class student extends collage {     function __construct( )     {                 parent::__construct("saddam","15","12","delhi");     }     function index()     {   ...

class in php with __contruct magic function()

Class in php with __contruct magic function()  <html  > <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>oops in php by saddam</title> </head> <body> creat many  object in one class <?php class student { public $name, $age, $clss,$address; function __construct($n,$a,$c,$ad) {     $this->name=$n;     $this->age=$a;     $this->clss=$c;     $this->address=$ad;  }      }     echo "</br>";     $obj1=new student('saddam','17','15','delhi');   echo $obj1->name ."</br>";   $obj2=new student('sanjay','17','15','rudarpur');   echo $obj2->name ."</br>";   $obj3=new student('hitesh','17','15','darghat');   echo $obj3->name ."</br>";   $obj4=new student('vikass','17','15','delhi');   ec...

oops in php by saddam saifi

oops in php by saddam saifi here is simple structure of class <?php class saddam { } ?>  create object with the use of new word <?php class saddam { } $sam=new saddam;   ?> declareb variable in class <?php class saddam { public $var1="saddam"; public $var2="saifi"; } $sam=new saddam;   ?> use function and method in class <?php class saddam { public $var1="saddam"; public $var2="saifi"; function saifiji() { echo "hello world"; } } $sam=new saddam;   $sam->saifiji(); ?> output:- hello world

log in system in php and html

Log in system in php and html step1 :- create a form for user information used to store <form action="" metho="post"> <table>  <tr><td>Name </td> <td><input type='text' name='name'> </td> </tr> <tr><td>Email </td> <td><input type='text' name='email'> </td> </tr> <tr><td>Address </td> <td><input type='text' name='address'> </td> </tr> <tr><td colspan='2'><input type="submit"  value="submit" > </td> </tr> </table> </form> step2:- php code top of the page     if(isset($_REQUEST['submit'])) {   $name=$_REQUEST['name']; $email=$_REQUEST['email']; $address=$_REQUEST['address']; //validation in php if(!empty($name)) { if(!empty($email)) { if(filter_var($email , FIL...

Mysql join query in mysql and php

Mysql join query in mysql and php <?php $sql="select id ,name , address, city  from  table1  , table2  where table1.id=table2.cusid "; ?> inner join <?php $sql="select id ,name , address, city  from table1 INNER JOIN table2 ON table1.id=table2.cusid "; ?> left join <?php $sql="select id ,name , address, city  from table1 LEFT JOIN table2 ON table1.id=table2.cusid "; ?> right join <?php $sql="select id ,name , address, city  from table1 RIGHT JOIN table2 on table1.id=table2.cusid "; ?> full join <?php $sql="select id ,name , address, city  from table1 FULL JOIN table2 on table1.id=table2.cusid "; ?>