---
title: "problem creating a table"  
description: "problem creating a table"  
author: "Manasavi Rajpoot"  
published: 2010-12-20  
updated: 2010-12-24  
canonical: https://www.mindstick.com/forum/129/problem-creating-a-table  
category: "php"  
tags: ["php"]  
reading_time: 1 minute  

---

# problem creating a table

how to create a [table](https://www.mindstick.com/articles/43918/how-to-design-table-using-bootstrap) in [php](https://www.mindstick.com/articles/12149/php-constant-and-php-variables) and syntax of its\

## Replies

### Reply by Amit Singh

Creating table in php\
by using syntax:\
\

```
mysql_select_db("my_db", $con);//Select the Database
$sql = "CREATE TABLE Persons   //Create the Table
(
FirstName varchar(15),
LastName varchar(15),
Age int
)";
// Execute query
mysql_query($sql,$con);
```

\


---

Original Source: https://www.mindstick.com/forum/129/problem-creating-a-table

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
