Welcome Guest, Not a member yet? Register   Sign In
unable to store query
#1

[eluser]krishnakumar2k[/eluser]
when i try to save the following query inputted from textarea

<a >Click Here for Blackberry eScreen Keygen</a></p>

in the data base only the follwoing getting stored

<a >Click Here for Blackberry eScreen Keygen</a></p>

what may be the reason
#2

[eluser]krishnakumar2k[/eluser]
when i try to save the following query inputted from textarea

,in the data base only the follwoing getting stored

<a >Click Here for Blackberry eScreen Keygen</a></p>

but in the input area i have typed href and onclick events but those are not getting saved ?
#3

[eluser]krishnakumar2k[/eluser]
when i tries to post that query in my post here also it
is not showing.Its showing just like my my db
#4

[eluser]InsiteFX[/eluser]
Maybe if you show your code one of us would be able to help you!

InsiteFX
#5

[eluser]krishnakumar2k[/eluser]
[quote author="InsiteFX" date="1299694757"]Maybe if you show your code one of us would be able to help you!

InsiteFX[/quote]
Code:
this is posted
<a >Click Here for Blackberry eScreen Keygen</a></p>

$data1['content'] = $this->input->post('content');

After saving

<a >Click Here for Blackberry eScreen Keygen</a></p>
#6

[eluser]krishnakumar2k[/eluser]
[quote author="krishnakumar2k" date="1299695567"][quote author="InsiteFX" date="1299694757"]Maybe if you show your code one of us would be able to help you!

InsiteFX[/quote]
Code:
this is posted
<a >Click Here for Blackberry eScreen Keygen</a></p>

$data1['content'] = $this->input->post('content');

After saving

<a >Click Here for Blackberry eScreen Keygen</a></p>
[/quote]
here also that code is not coming
#7

[eluser]InsiteFX[/eluser]
Did you create a form to get the input?

If so show your form code and controller code.

InsiteFX
#8

[eluser]krishnakumar2k[/eluser]
[quote author="InsiteFX" date="1299695959"]Did you create a form to get the input?

If so show your form code and controller code.

InsiteFX[/quote]

Code:
controller code

$data1['content'] = $this->input->post('content');
$this->service_model->insertContent($data1);

form

&lt;form name="kkdh" action="&lt;?php echo site_url("login/editor_add"); ?&gt;" method="post"&gt;
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="left" style="margin-bottom:25px;">
  <tr style="color:#FFFFFF;">
    &lt;input type="hidden" value="&lt;?php echo base_url();?&gt;" id="url" /&gt;
    <td width="10%" rowspan="2"><img src="&lt;?php echo base_url();?&gt;images/manage_plans.jpg" width="56" /></td>
    <td  height="11" colspan="5" style="background-color:#84BCED;">&nbsp;&nbsp;<span class="bigwhitetext"> Editor</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
  </tr>
  <tr style="color:#FFFFFF;">
    <td width="11%">&nbsp;</td>
    <td  height="11" colspan="2" ></td>
  </tr>
  &lt;?php if($error !=""){ ?&gt;
   <tr >
    <td width="10%" >&nbsp;</td>
    <td width="11%">&nbsp;</td>
    <td width="71%" >
        <div style="background-color:#990000;color:#FFFFFF;border:1px solid #FF0000;font-weight:bold;">&lt;?php echo $error; ?&gt;</div>
    
    </td>
    <td width="0%" >&nbsp;</td>
    <td width="8%"  height="11" colspan="2" ></td>
  </tr>
  &lt;?php } ?&gt;
  <tr >
    <td width="10%" >&nbsp;</td>
    <td width="11%">&nbsp;</td>
    <td width="71%" >
        <table width="568">
      <tr>
             <td width="192" class="greytext_contact">Menu Title</td>
            <td width="364">&lt;input type="text"&gt;&lt;/td>
          </tr>
            <tr>
             <td class="greytext_contact">Enable Menu</td>
             <td>&lt;input type="checkbox" name="status" &lt;?php if($content['status']== 1){echo 'checked="checked"';} ?&gt;  value="1" /&gt;&lt;/td>
            </tr>
               <tr>
              <td valign="top" class="greytext_contact">HTML Content</td>
             <td>&lt;textarea name="content" id="kk1" rows="15" cols="55" &gt;&lt;/textarea></td>
            
            </tr>
            <tr>
             <td></td><td>&lt;input type="submit" value="Submit" /&gt;&lt;/td>
            </tr>
        </table>
    
    
    </td>
    <td width="0%" >&nbsp;</td>
    <td width="8%"  height="11" colspan="2" ></td>
  </tr>
</table>
&lt;/form&gt;
#9

[eluser]InsiteFX[/eluser]
You need the form like this, site_url on returns the segments not the complete path.
Code:
&lt;form name="kkdh" action="&lt;?php echo base_url().login/editor_add;?&gt;" method="post"&gt;

I would use CodeIgniter's form_helper.

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB