Archive for the ‘Oracle’ Category

How to delete DIV dynamically using JQuery

To download the code – Click Here

To delete or modify HTML contents we need to use JQuery or any other similar scripting methods.

In this example there are 3 DIV's and it can be deleted dynamically. When we click on the [ X ] button the corresponding DIV was deleted and also it send a POST request to delete.php so we can also delete the corresponding user from the database.

Live Demo


 

Read more »

Auto Complete Text box using AJAX in PHP

 

To download code – Click Here

 
To view the live demo please enter your country name.
 
 

Read more »

How to use GROUP BY and ORDER BY together in SQL

Step 1

First you need to create one table named employee with 9 fields.

CREATE TABLE employee (
 
    id int unsigned not null auto_increment primary key,
    firstname varchar(20),
    lastname varchar(20),
    title varchar(30),
    age int,
    yearofservice int,
    salary int,
    perks int,
    email varchar(60)
); 
 
Step 2
 
Insert some dummy values into the employee table
 
INSERT INTO employee (firstname, lastName, title, age, yearofservice, 
salary, perks, email) values ("James", "John", 
"Programmer", 31, 3, 120000, 25000, "jj@gmail.com");
 
INSERT INTO employee (firstname, lastName, title, age, yearofservice, 
salary, perks, email) values ("Joe", "Mathew", 
"Teacher", 42, 4, 186000, 32000, "jm@gmail.com");
 
INSERT INTO employee (firstname, lastName, title, age, yearofservice, 
salary, perks, email) values ("Jobin", "Thomas", 
"Programmer", 28, 1, 236000, 36800, "jt@gmail.com");

Read more »