fork download
  1. <?php
  2.  
  3. public function getVendedor(){
  4. $query = $this->db->query("SELECT *, (SELECT v.code FROM oc_vendedores v WHERE v.code = u.vendedor_id) AS vendedor_id FROM oc_user u WHERE u.user_id = '" .(int)$this->getId(). "'");
  5. return $query->row['vendedor_id'];
  6.  
  7. }
Runtime error #stdin #stdout #stderr 0.02s 25864KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Parse error:  syntax error, unexpected 'public' (T_PUBLIC), expecting end of file in /home/FXbLaF/prog.php on line 3