hi all,
i wanna know how does the project module acces to the database(i searched in source code and i didn't find any thing like "mysql_connect"or "mysql_select_db"..)
thanks a lot
Hi Walid,
According to my programmer friend, the project module accesses the database the same as any other module in Moodle, by the settings in the config.php file. He says, "There is no need to write these functions "mysql_connect"or "mysql_select_db" in Moodle, it's enough to include config.php file to the beginning of the script and we'll be automatically connecting with MySQL database where there is Moodle and Moodle functions."
I hope this helps...
Don
According to my programmer friend, the project module accesses the database the same as any other module in Moodle, by the settings in the config.php file. He says, "There is no need to write these functions "mysql_connect"or "mysql_select_db" in Moodle, it's enough to include config.php file to the beginning of the script and we'll be automatically connecting with MySQL database where there is Moodle and Moodle functions."
I hope this helps...
Don
Hi Don,
i find it, i must:
include config.php file to the beginning of the script
then, use insert_records(),get_records()...
thanks a lot, best regards.
Hi Walid,
By the way, we are almost ready to release the 1.8-1.9 version of the Project Module. You can get the source code here if you are interested...
http://englishforum.sgu.ac.jp/downloads/Project%20Module/
By the way, we are almost ready to release the 1.8-1.9 version of the Project Module. You can get the source code here if you are interested...
http://englishforum.sgu.ac.jp/downloads/Project%20Module/