Example #1
0
 function find_rev()
 {
     $con = new clscon();
     $link = $con->db_connect();
     $qry = "call fndrev('{$this->revcod}')";
     $res = mysqli_query($link, $qry);
     if (mysqli_num_rows($res) > 0) {
         $r = mysqli_fetch_row($res);
         $this->revcod = $r[0];
         $this->revasgcod = $r[1];
         $this->revdat = $r[2];
         $this->revdsc = $r[3];
         $this->revscr = $r[4];
     }
     $con->db_close();
 }