<?
       $con=sqlrcon_alloc("sqlrserver",9000,"/tmp/test.socket","user","password",0,1);
       $cur=sqlrcur_alloc(con);

       sqlrcur_prepareQuery($cur,"select * from mytable where mycolumn>:value");
       sqlrcur_inputBind($cur,"value",1);
       sqlrcur_executeQuery($cur);

       ... process the result set ...

       sqlrcur_clearBinds($cur);
       sqlrcur_inputBind($cur,"value",5);
       sqlrcur_executeQuery($cur);

       ... process the result set ...

       sqlrcur_clearBinds($cur);
       sqlrcur_inputBind($cur,"value",10);
       sqlrcur_executeQuery($cur);

       ... process the result set ...

       sqlrcur_free($cur);
       sqlrcon_free($con);
?>
