Welcome Guest, Not a member yet? Register   Sign In
Active Record and SQL error
#8

[eluser]aruna[/eluser]
[quote author="Armchair Samurai" date="1236249570"]Put a space between your column and your operation.

Code:
$this->db->where(“sn.version_ts >=”,recentdate);
[/quote]


ya ..Now i got it....Now its working...
But i m getting some other error...

Parse error: syntax error, unexpected T_STRING in
/home/ntdg/public_html/codeigniter/system/plugins/dompdf/include/dompdf.cls.php(277) : eval()'d code on line 692


The code works well for other cases..but when i clicked the month april i m getting this error..
following s the controller..to_pdf_file($month)...when i selected a month from my interface(views)



function to_pdf_file($month)
{
$snippet["codedetails"]=$this->Admin_Model->get_all_code_bymonth($month);
$snippet["month"]=$month;

$html=$this->load->view("view_pdf",$snippet,true);
pdf_create($html,'Month',TRUE);
}

the following in my views(view_pdf)
&lt;? if($codedetails){ ?&gt;<ol>
&lt;? ?&gt;

<table border="1" width="200">
<tr><th>ID</th><th>TITLE</th><th>DESCRIPTION</th><th>CODE</th><th>VERSION</th></tr>
&lt;?foreach($codedetails as $s=>$ss){?&gt;


<tr>
<td> &lt;?=$ss['id'];?&gt; </td>
<td> &lt;?=$ss['title'];?&gt; </td>
<td > &lt;?=$ss['description'];?&gt; </td>
<td> &lt;?=$ss['code'];?&gt; </td>
<td> &lt;?=$ss['version_ts'];?&gt; </td>

</tr>

&lt;?}?&gt;
</table>

&lt;?
}else{?&gt;
<p>list is empty</p>
&lt;? }

?&gt;


its not working for the month march.........please anyone resolve it.........


when i selected the month april , i m getting the error as


Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 39 bytes) in /home/ntdg/public_html/codeigniter/system/plugins/dompdf/lib/class.pdf.php on line 2373


please anyone resolve this too.....


Messages In This Thread
Active Record and SQL error - by El Forum - 12-30-2008, 08:30 AM
Active Record and SQL error - by El Forum - 12-30-2008, 09:21 AM
Active Record and SQL error - by El Forum - 12-30-2008, 04:25 PM
Active Record and SQL error - by El Forum - 12-30-2008, 04:42 PM
Active Record and SQL error - by El Forum - 12-30-2008, 04:53 PM
Active Record and SQL error - by El Forum - 03-04-2009, 10:24 PM
Active Record and SQL error - by El Forum - 03-04-2009, 10:39 PM
Active Record and SQL error - by El Forum - 03-09-2009, 10:28 PM
Active Record and SQL error - by El Forum - 09-10-2009, 04:34 AM
Active Record and SQL error - by El Forum - 09-10-2009, 05:08 AM
Active Record and SQL error - by El Forum - 09-10-2009, 08:01 PM
Active Record and SQL error - by El Forum - 09-10-2009, 09:20 PM
Active Record and SQL error - by El Forum - 09-10-2009, 09:25 PM
Active Record and SQL error - by El Forum - 09-11-2009, 02:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB