globlalways
04-07-2006, 19:02
$sql="insert into services (name,status,triggerid,algorithm,showsla,goodsla,s ortorder)".
" values (".zbx_dbstr($name).",0,$triggerid,$algorithm,$showsla,$goodsla,$sortor der)";
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
" values (".zbx_dbstr($name).",0,$triggerid,$algorithm,$showsla,$goodsla,$sortor der)";
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