Ad Widget

Collapse

Query Error in Function add_service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • globlalways
    Junior Member
    • Jun 2006
    • 9

    #1

    Query Error in Function add_service

    PHP Code:
                    $sql="insert into services (name,status,triggerid,algorithm,showsla,goodsla,sortorder)".
                            
    " values (".zbx_dbstr($name).",0,$triggerid,$algorithm,$showsla,$goodsla,$sortorder)"
    The variables $algorithm and $goodsla are of type string so the variables must encapsulated with ' or use the function zbx_dbstr.

    Zabbix Version 1.1 R1
Working...