You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
423 B
15 lines
423 B
13 years ago
|
<?php
|
||
7 years ago
|
/* PHP code to install the plugin
|
||
13 years ago
|
* For example:
|
||
7 years ago
|
*
|
||
13 years ago
|
// To query something to the database
|
||
7 years ago
|
|
||
13 years ago
|
$table = Database::get_main_table(TABLE_MAIN_USER); // TABLE_MAIN_USER is a constant check the main/inc/database.constants.inc.php
|
||
|
$sql = "SELECT firstname, lastname FROM $table_users ";
|
||
7 years ago
|
$users = Database::query($sql);
|
||
|
|
||
|
You can also use the Chamilo classes
|
||
|
$users = UserManager::get_user_list();
|
||
|
|
||
|
*/
|