• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
can you help me

#1
[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:iConfused', strtotime('+0 days', $receiveDate));
$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>&lt;?=$no?&gt;</td>
<td>&lt;?php echo "$senderName";?&gt;</td>
<td>&lt;?=$receiveDate?&gt;</td>
<td>&lt;?=$tmp->TextDecoded?&gt;</td>
</tr>
&lt;?php







Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.