Forums

Saving data to existing database tables

green_eye_boy_121 31 Mar, 2010
Hi There,

I want to create a form which can create a record in a table which already exists. I haven't seen any documentation on how to do this. I want to use a separate form for different types of entries in order to extend the functionality of Ads Manager.

Please can you send me some guidelines on how to achieve this.

Thanks,
Steven
GreyHead 31 Mar, 2010
Hi Steven,

You can connect any form to any table with the drop-down in the DB Connection tab. As long as the form input names match the table column names your data will be saved.

Bob
GreyHead 01 Apr, 2010
Hi green_eye_boy_121,

Yes it is that simple, but that makes it potentially risky too. Be very very careful about connecting to core Joomla tables like jos_users, jos_components, jos_articles, etc as you can create problems for your site if you add records without understanding how those components work.

Bob
This topic is locked and no more replies can be posted.