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);

 

What do I need to change or add to be able to run the query.  The page
is called by adding these lines of code to front\tracking.form.php

$printable = "/glpi/front/report.ticket.php?ID=";

$printable = $printable.$_GET["ID"];

 

echo "<div align=center><br><br>";

echo "<A href=$printable>Printable Version</a>";

echo "</div>";

 

Thanks in advance,

Paul Dokken 

CTS Software Development

 

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

Reply via email to