<?php public function getVendedor(){ $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(). "'"); return $query->row['vendedor_id']; }
Standard input is empty
Standard output is empty
PHP Parse error: syntax error, unexpected 'public' (T_PUBLIC), expecting end of file in /home/FXbLaF/prog.php on line 3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!