No account yet?

Links

Home arrow Articles arrow Programming arrow How to insert data into the database using joomla's global $database
How to insert data into the database using joomla's global $database PDF Print E-mail
Tag it:
Delicious
blogmarks
Stumble
Furl it!
Digg
YahooMyWeb
Technorati
User Rating: / 6
PoorBest 

This short snippet demonstrates how to insert data into a joomla database table using the built in $database global object. Note that you have to declare the variable if you are making this call from within a function. If this call is being made from within a component or module, then declaring the variable is not required.

Comments
Search
Only registered users can write comments!
Zibi  - OK- What about Joomla 1.5 ?   |62.69.192.xxx |2008-11-10 11:41:27
Hello!
I used $my, $database, _VALID_USER, in former Joomla 1.0.X. But now,
it has all changed. Question is, how to get database handle in joomla 1.5.X ?
The same to other "joomla objects" , configuration, users.

Regards Zibi
Last Updated ( Sunday, 11 January 2009 )
 
Next >