CTS-Programmer 3 (Paul Dokken) a écrit :
>
> I am upgrading an instance of glpi from 0.68.3 to .071.5 and am 
> getting an error message on a page that we wrote. I get this error 
> message “*Fatal error*: Call to a member function query() on a non-object”
>
> Here is what the code looks like:
>
> …
>
> define('GLPI_ROOT', '..');
>
> include (GLPI_ROOT . "/inc/includes.php");
>
> …
>
> $query = "SELECT * from glpi_tracking where id=$_GET[ID]";
>
> echo($query);
>
> $result = $db->query($query);
>
> $ticket = $db->fetch_array($result);
>
Hi,

$DB instead of $db ?
But I think you change something on your server when you upgrade GLPI 
(Windows -> linux for example).

Regards

Julien


_______________________________________________
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev

Reply via email to