Ad Widget

Collapse

Fix error in MySQL query graphs.inc.php beta 1.7 cvs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Klever
    Junior Member
    • Feb 2006
    • 9

    #1

    Fix error in MySQL query graphs.inc.php beta 1.7 cvs

    graphs.inc.php

    Fix error in MySQL query, if item ¨key_¨ is include special character

    Error in query [select itemid from items where key_=vfs.dev.write[hda] and hostid=10011] [You have an error in your SQL synt
    ax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[hda] and hostid=10011'
    at line 1]
    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/html/addon-modules/zabbix/fron
    tends/php/include/db.inc.php on line 149
    Attached Files
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Fixed (differently). Thanks for pointing to the problem.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    Working...