sip-router writes:

> I use SQLOPS module to query additional data in MySQL database. Script logic 
> is based on user related DB records existence. I check wether records exist 
> or not simply by assigning variable:
> 
>         $var(touser) = $dbr(touser=>[0,0]);
>         if ($var(touser) != $null) {
>                 [...]
>         } else {
>                 [...]
>         }

perhaps better way to check if any records were returned is to test if
$dbr(result=>rows) is greater than 0.

-- juha

_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to