Tuesday 23 August 2016

Queue implementation using array

//Girfa Student Help
// For More DS Program Visit
// http://girfahelp.blogspot.in/p/data.html
#include<stdio.h>
#include<conio.h>
#define MAX 5
void main()
{
int ar[MAX],front=-1,rear=-1,opt,n;
do
{
clrscr();
printf("\n1. Enqueue\n2. Dequeue\n3. Print\n0. Exit\nEnter your choice>> ");
scanf("%d",&opt);
switch(opt)

Monday 22 August 2016

Stack Using Array

//Girfa Student Help stack using array
#include<iostream.h>
#include<conio.h>
#define MAX 5
void main()
{
int ar[MAX],top=-1,i,opt;
do
{
clrscr();
cout<<"\n\t1. Push\n\t2. Pop\n\t0. Exit\n\tEnter your choce>> ";
cin>>opt;
switch(opt)
{
case 1:

Face stone effect

Face stone effect

Face stone effect

Step 1

  • ·         Open your image
  • ·         And select face area of girl

Sunday 21 August 2016

Getting ID of Last inserted row in PHP

In web designing there are many reasons when we need to last inserted record id. You can do it with PHP if you will use auto increment in ID. Following code guide you to achieve this.

                                       $servername = "localhost";
$username = "root";
$password = "your password";
$dbname = "your db name";

// Create connection
$conn = mysqli_connect($servername, $username, $password, $dbname);
// Check connection
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}