Welcome Guest, Not a member yet? Register   Sign In
database question -> get rows from complex query AND results in ONE query ?!
#9

[eluser]BoggTm[/eluser]
Hellow, I am new, and I have a problem: my datas are displated outside, not in the website
code:
$data = array();
$this->data[‘CONTENT’] = $this->load->view(‘Forms/FormCautareNum’, $data, TRUE);
$this->parser->parse(‘layout/base_template’,$this->data);

if ($this->input->post(‘btnAfisNum’))
{
$var=$this->input->post(‘textfield’);
$query = $this->db->query(“SELECT * FROM adaugare_firma WHERE Nume LIKE ‘%$var%’”)->result();
foreach($query as $q)
{
echo q->Nume;
echo q->Domeniu;
echo q->Subdomeniu;
echo q->produs;
}

and I want to parse those datas in my view form: FormCautareNum .... Can anyone help?


Messages In This Thread
database question -> get rows from complex query AND results in ONE query ?! - by El Forum - 05-21-2010, 03:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB