[racktables-users] Re: Reports

  • From: Denis Ovsienko <infrastation@xxxxxxxxx>
  • To: racktables-users@xxxxxxxxxxxxx
  • Date: Tue, 29 Jun 2010 18:07:36 +0400

> Then created inc/report.php, but get the following error when I select 
> Reports/Warranty Expires: Fatal error: Call to undefined function 
> useSelectBlade() in /var/www/html/racktables/inc/report.php on line 26

The function (useSelectBlade) got dropped in 0.18 as a part of PDO cleanup 
work. The right function to use is now usePreparedSelectBlade(). Here is an 
example:

$check_result = usePreparedSelectBlade ('SELECT COUNT(*) AS count FROM 
RackSpace WHERE rack_id = ? AND unit_no > ?', array ($rack_id, $new_height));

--
    Denis Ovsienko

Other related posts: