Mysql

How to Create Dynamic Dependent select box using ajax

How to Create Dynamic Dependent select box using ajax

You need a dynamic dependent select box. We will explain how to create a dynamic dependent select box in PHP, jquery and ajax.

index.php

<?php
include_once 'dbconfig.php';
?>
<html>
<head>
<title>Dynamic Dependent Select Box using Ajax</title>
<script type="text/javascript" src="jquery-1.4.1.min.js"></script>
<script 
how to create a database

How to Create Database and tables in MySql

In this article will explain How to Create Database and tables in MySql.

Create a Database

CREATE DATABASE DATABASE_NAME;

In MySql, if you want to display a list of all databases to run the below query.

SHOW DATABASES;

Create Tables:

ascending order

How to use ORDER BY in Mysql

In this article, you will learn How to use ORDER BY in Mysql.

Syntax:-

SELECT column1, column2, ...
FROM table_name
ORDER BY column1, column2, ... ASC/DESC;

ORDER BY DESC Example:-

SELECT * FROM Students ORDER BY StudentID DESC;

ORDER BY

javascript cookie

How to Create Cookies in PHP on Browser

In this article, you will learn How to Create Cookies in PHP.on Browser A Cookie is used to identify any user. With the help of the PHP, you can retrieve and create the cookie.

Syntax:-

setcookie(name, value, expire, path, domain,