This example illustrates how to create table in php.
In this example we create a table "emp_table" with three fields, "emp_id", "emp_name" and "emp_designation". The "emp_id" is integer type, not null, auto increment and primary key define. The "emp_name" is varchar type and the "emp_designation" is also the varchar type define. We insert three value by the insert query. Finally we fetched all rows and columns by select query.
Table: emp_table

Source Code of sql_table.php
<?php
|
Output:
