Joomla - Component: Creating the Database TableTag: joomla, cms, Joomla Component Category: PHP Frameworkpost: 04 Nov 2007 read: 5,508 Now, we create a table for preparing place where data will go. For first time, make sure what prefix database you use. You can check on menu Site > Global Configuration > Server. Assuming, that your database prefix is jos_.
If you prefer SQL statement, you can write following code:
If you prefer use web-based database manager such phpMyAdmin, folow this steps:
Creating a Table Class We could write individual functions to take care of the queries necessary to add, update, and delete data. Fortunately, the Joomla! team has ready done this for you. The JTable class provides functions for performing modify data from single table in the database. We just extend the class. Following steps to create table class:
|
| | Give Your Opinion | Recommend |
|
2 Responses to Joomla - Component: Creating the Database Table:
Thanks
But Iam facing problem when Iam adding more columns to the table.
Can you please help in this regard


