![]() |
can you help me - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: can you help me (/showthread.php?tid=60737) |
can you help me - El Forum - 06-16-2014 [eluser]Unknown[/eluser] I want to enter data into the toolbox of the three into one field in the data base with a program that gives a response like this, can you help me A PHP Error was encountered Severity: 4096 Message: Object of class stdClass could not be converted to string Filename: files/outbox.php Line Number: 27 is model from CI $this->form_validation->set_rules('message', 'Message', 'required'); if ($this->form_validation->run() == TRUE) { $subject = $this->input->post('subject'); $from = $this->input->post('from'); $date = $this->input->post('date'); $message = $this->input->post('message'); $message2 = "subject : ".$subject.", from : ".$from.", date : ".$date.", message : ".$message; $messagelength = strlen($message2); and problem for my project this from View <?php if ($this->uri->segment(2,0) !=0){$no = $this->uri->segment(2,0);} else {$no = 0;} foreach($outbox->result() as $tmp): $no = $no + 1; $receiveDate = strtotime($tmp->SendingDateTime); $receiveDate = date('d M Y H:i ![]() $qry=$this->Mysms_model->getPhonebook('bynumber', $tmp->DestinationNumber); if($qry->num_rows!=0) $senderName=$qry->row('fullName'); else $senderName=$tmp->DestinationNumber; ?> <tr> <td width="5px" class=spec><?=$no?></td> <td><?php echo "$senderName";?></td> <td><?=$receiveDate?></td> <td><?=$tmp->TextDecoded?></td> </tr> <?php |