Notice: Arraytostringconversion. how can this problem be solved?

Source: Internet
Author: User
Tags array to string
Notice: Arraytostringconversion This post was last edited by xusheng890331 from 2014-01-0613: 13: 27. the following error occurs on the website. how can I solve this problem? A & nbsp; PHP & nbsp; Error & nbsp; was & nbsp; encounteredSeverity: & nbsp; Not Notice: Array to string conversion

This post was last edited by xusheng890331 at 13:13:27

The following error occurs on the website. how can this problem be solved?

A php Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: controllers/page. php
Line Number: 162


function showPageV($id,$vnum)
{
$this->pageModel->id=$id;
$this->pageModel->get_entries();
$this->smarty->assign($vnum,$this->pageModel->query->result_array());
$this->smarty->assign('mainid','theDiv'.$this->p);
}


Share: More


------ Solution --------------------
Var_dump ($ vnum );
See what it is
------ Solution --------------------


function showPageV($id,$vnum)
{
$this->pageModel->id=$id;
$this->pageModel->get_entries();
var_dump($vnum);
print_r($this->pageModel->query->result_array());die();
$this->smarty->assign($vnum,$this->pageModel->query->result_array());
$this->smarty->assign('mainid','theDiv'.$this->p);
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.