Description
Get all columns of table
Function Defination
void function columnNames($dbTableName);
Parameters Details
Details | Type | Example |
---|---|---|
$dbTableName - table name to be truncated | string | e.g. "emptable" |
Examples
$GOModel = new GOModel(); //create object of the GOModel class $GOModel->connect("localhost", "root", "", "database");//connect to database /* Get all columns function */ $columnNames = $GOModel->columnNames("wp_posts");
More Examples
//Example 1 $columnNames = $GOModel->columnNames("wp_posts");
Result/Output
Return all column name in array format
Debug
Option | Details | Example |
---|---|---|
$GOModel->getLastQuery(); | Return last query executed | DESCRIBE `wp_posts` |
print_r($GOModel->error) | Print errors (if any) |