Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter edit checkbox showing error
#1

My code is : 
                                        <label class="checkbox-inline">

                                          <input type="checkbox" name="Stake_Holder" value="Stake_Holder" <?php if($data['Stake_Holder'] == 'Stake_Holder'){echo 'checked';}?>/>Stake Holder
                                        </label>
///////////////////////////////////////////////////////////////////////

Error showing: A PHP Error was encountered Severity: Notice
Message: Undefined variable: data
Filename: superadmin/client_view.php
Line Number: 73
Backtrace:
File: C:\xampp\htdocs\ciall\ciautomation\application\views\superadmin\client_view.php Line: 73 Function: _error_handler
File: C:\xampp\htdocs\ciall\ciautomation\application\controllers\Client_con.php Line: 37 Function: view
File: C:\xampp\htdocs\ciall\ciautomation\index.php Line: 315 Function: require_once
/>Stake Holder

I want echo checked
Reply


Messages In This Thread
CodeIgniter edit checkbox showing error - by azmath - 07-07-2018, 11:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB