You are not logged in.
Pages: 1
Where the global $DB is defined?!
Offline
anyone?! I don't understand how it works. If I have an arquive dataToSend.form.php:
<?php
define('GLPI_ROOT', '../../..');
include (GLPI_ROOT . "/inc/includes.php");
funtion searchData() {
global $DB;
$select = "Select * FROM glpi_tickets";
$result = $DB->query($query);
if ($DB->numrows($result) > 0) {
while ($line = $DB->fetch_assoc($result)) {
echo $line["key"];
}
}
}
?>
This is correct? Because when I do it dont it works?
Offline
Pages: 1