Posts

date_diff function in php

////////////////////////////////////////////////////////////////////// //PARA: Date Should In YYYY-MM-DD Format //RESULT FORMAT: // '%y Year %m Month %d Day %h Hours %i Minute %s Seconds'        =>  1 Year 3 Month 14 Day 11 Hours 49 Minute 36 Seconds // '%y Year %m Month %d Day'                                    =>  1 Year 3 Month 14 Days // '%m Month %d Day'                                            =>  3 Month 14 Day // '%d Day %h Hours'                                            =>  14 Day 11 Hours // '%d Day'                                                        =>  14 Days // '%h Hours %i Minute %s Seconds'                                =>  11 Hours 49 Minute 36 Seconds // '%i Minute %s Seconds'                                        =>  49 Minute 36 Seconds // '%h Hours                                                    =>  11 Hours // '%a Days                                             

How to create a custom form in wordpress

// create table in database ( must add prefix ) // create page to display form i was wrote code into front-page.php                       Name: Email Selecet Resume: Submit if(isset($_POST['submitted'])) { global $wpdb; //print_r($_FILES['res']); $filename =  basename($_FILES['res']['name']); $path = get_template_directory()."/"."upload/resume/".$filename; //echo " "; $status = false; if(move_uploaded_file($_FILES['res']['tmp_name'], $path)) { $status = ture; } if($status == true) { $tablename=$wpdb->prefix.'resume'; $date = date("Y-m-d H:i:s A"); $data=array('name' => $_POST['contactName'], 'email

How to create Custom Menu in wordpress admin panel

// Create a file under the theme folder Yourname.php /* How to add menu into the admin */ add_action('admin_menu', 'my_menu_pages'); function my_menu_pages(){     add_menu_page('Show Recodes',  // page name         'View Resume',  // menu name         'manage_options',  // not change         'Second-menu',  //  Page is display to admin panel it is display in url         'my_menu_output', // function name         'dashicons-welcome-view-site', // icon url or icon name          3          /*             where to display             Default: bottom of menu structure #Default: bottom of menu structure             2 – Dashboard             4 – Separator             5 – Posts             10 – Media             15 – Links             20 – Pages             25 – Comments             59 – Separator             60 – Appearance             65 – Plugins             70 – Users             75 – Tools      

Venture Capital Funds V/S Mutual Funds

Larger mutual funds and people having a lot of stable funding are a lot of probably to speculate in in private command startups called unicorns. Mutual funds are less concerned in company governance, particularly boards of administrators, however have a lot of protections once it involves liquidating their stakes. What is ' Venture Capital Funds '? Venture capital funds area unit investment that manage the cash of investors United Nations agency get non-public equity stakes in startup and small- to medium-sized enterprises with sturdy growth potential. These investments area unit typically characterised as high-risk/high-return opportunities. What is ' Mutual Funds' ? A open-end investment company may be a professionally-managed investment theme, typically go by associate degree quality management company that brings along a gaggle of individuals and invests their cash in stocks, bonds and alternative securities. Mutual Fund 'units', is basically represe

Merge Sort Algorithm in c/c++

Merge Sort Algorithm in c/c++ #include<stdio.h> #include<conio.h> int a[100],b[100]; void mergesort(int low,int mid, int high) {             int h=low,i=low,j=mid+1;             while(h<=mid && j<=high)             {                         if(a[h]<a[j])                         {                                     b[i]=a[h];                                     h=h+1;                         }                         else                         {                                     b[i]=a[j];                                     j=j+1;                         }                         i=i+1;             }             if(h>mid)             {                         for(int k=j;k<=high;k++)                         {                                     b[i]=a[k];                                     i=i+1;                         }             }             else             {                         for(int k=h;k<=

linked queue algorithm using c/c++

linked queue algorithm using c/c++ #include<stdio.h> #include<conio.h> int a[100],front=-1,rear=-1; void main() {                 clrscr();                 void iqueue();                 int dqueue();                 void diplayque();                 int n,ind;                 while(1)                 {                                 printf("\n\n\t Perform Task : \n\t 1. Push \n\t 2. Pop \n\t 3. Display \n\t 4. Exit");                                 printf("\n\tEnter your Choices ");                                 scanf("%d",&n);                                 if(n==4)                                                 break;                                 switch(n)                                 {                                                 case 1:                                                                 iqueue();                                                                 break;         

Link list using c++

Image
Link list using c++ Knowledge of linked lists is must for C programmers. This article explains the fundamentals of C linked list with an example C program. Linked list is a dynamic data structure whose length can be increased or decreased at run time. How Linked lists are different from arrays? Consider the following points : An array is a static data structure. This means the length of array cannot be altered at run time. While, a linked list is a dynamic data structure. In an array, all the elements are kept at consecutive memory locations while in a linked list the elements (or nodes) may be kept at any location but still connected to each other. #include<stdio.h> #include<conio.h> #include<alloc.h> #include<process.h> struct linklist {                 int n;                 struct linklist *next; }; typedef struct linklist node; struct linklist *head,*head1; void displayNode() {                 node *temp;