Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
Saturday at 11:44 PM
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
codeigniter Help
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="isurutmv" data-source="post: 22372169" data-attributes="member: 470006"><p><span style="font-size: 22px">mcn codeigniter walin hadapu site ekak host kara host karala form ekakin data danna hadanakota mehema error ekak enawa </span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px"></span></p><p> <strong>A PHP Error was encountered</strong></p><p></p><p> Severity: Notice</p><p> Message: Undefined variable: status</p><p> Filename: models/Model_insert.php</p><p> Line Number: 55</p><p> Backtrace:</p><p> File: /home/dgicabse/public_html/application/models/Model_insert.php</p><p> Line: 55</p><p> Function: _error_handler </p><p> File: /home/dgicabse/public_html/application/controllers/Insert.php</p><p> Line: 143</p><p> Function: insertbooking </p><p> File: /home/dgicabse/public_html/index.php</p><p> Line: 315</p><p> Function: require_once </p><p> </p><p> <strong>A PHP Error was encountered</strong></p><p></p><p> Severity: Notice</p><p> Message: Undefined variable: status</p><p> Filename: models/Model_insert.php</p><p> Line Number: 55</p><p> Backtrace:</p><p> File: /home/dgicabse/public_html/application/models/Model_insert.php</p><p> Line: 55</p><p> Function: _error_handler </p><p> File: /home/dgicabse/public_html/application/controllers/Insert.php</p><p> Line: 143</p><p> Function: insertbooking </p><p> File: /home/dgicabse/public_html/index.php</p><p> Line: 315</p><p> Function: require_once </p><p> </p><p> <strong>A PHP Error was encountered</strong></p><p></p><p> Severity: Notice</p><p> Message: Undefined variable: status</p><p> Filename: models/Model_insert.php</p><p> Line Number: 55</p><p> Backtrace:</p><p> File: /home/dgicabse/public_html/application/models/Model_insert.php</p><p> Line: 55</p><p> Function: _error_handler </p><p> File: /home/dgicabse/public_html/application/controllers/Insert.php</p><p> Line: 143</p><p> Function: insertbooking </p><p> File: /home/dgicabse/public_html/index.php</p><p> Line: 315</p><p> Function: require_once </p><p> </p><p> <strong>A PHP Error was encountered</strong></p><p></p><p> Severity: Warning</p><p> Message: Cannot modify header information - headers already sent by (output started at /home/dgicabse/public_html/system/core/Exceptions.php:271)</p><p> Filename: helpers/url_helper.php</p><p> Line Number: 564</p><p> Backtrace:</p><p> File: /home/dgicabse/public_html/application/controllers/Insert.php</p><p> Line: 144</p><p> Function: redirect </p><p> File: /home/dgicabse/public_html/index.php</p><p> Line: 315</p><p> Function: require_once </p><p> </p><p><span style="font-size: 22px">me thiyenne eke code eka</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px">[PHP]</span></p><p><span style="font-size: 22px">public function insertbooking($data)</span></p><p><span style="font-size: 22px"> {</span></p><p><span style="font-size: 22px"> $this->db->where('vehical_number',$data['vehical_number']);</span></p><p><span style="font-size: 22px"> </span></p><p><span style="font-size: 22px"> $respond = $this->db->get('ongoing_booking');</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px"> if($respond->num_rows()>0){</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px"> foreach ($respond->result() as $row)</span></p><p><span style="font-size: 22px"> {</span></p><p><span style="font-size: 22px"> $enddate= $row->end_date;</span></p><p><span style="font-size: 22px"> $bookingtime= $row->booking_time;</span></p><p><span style="font-size: 22px"> $bookingdate=$row->booking_date;</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px"> if(($enddate>$data['booking_date']) && ($bookingdate<$data['booking_date'])) </span></p><p><span style="font-size: 22px"> {</span></p><p><span style="font-size: 22px"> $status='not';</span></p><p><span style="font-size: 22px"> </span></p><p><span style="font-size: 22px"> }</span></p><p><span style="font-size: 22px"> else if (($enddate==$data['booking_date'])){</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px"> if($bookingtime>$data['booking_time']){</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px"> $status='not';</span></p><p><span style="font-size: 22px"> }</span></p><p><span style="font-size: 22px"> }</span></p><p><span style="font-size: 22px"> else if (($bookingdate==$data['booking_date'])){</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px"> if($bookingtime<=$data['booking_time']){</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px"> $status='not';</span></p><p><span style="font-size: 22px"> }</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px"> }</span></p><p><span style="font-size: 22px"> if($status=='not')</span></p><p><span style="font-size: 22px"> {</span></p><p><span style="font-size: 22px"> $this->session->set_flashdata('error','This Vehical Already booking');</span></p><p><span style="font-size: 22px"> redirect(base_url()."Admin/newbooking");</span></p><p><span style="font-size: 22px"> }</span></p><p><span style="font-size: 22px"> else{</span></p><p><span style="font-size: 22px"> $this->db->insert("ongoing_booking",$data);</span></p><p><span style="font-size: 22px"> }</span></p><p><span style="font-size: 22px"> }</span></p><p><span style="font-size: 22px"> </span></p><p><span style="font-size: 22px"> </span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px"> }</span></p><p><span style="font-size: 22px"> else{</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px"> $this->db->insert("ongoing_booking",$data);</span></p><p><span style="font-size: 22px"> }</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px"> </span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px"> </span></p><p><span style="font-size: 22px"> }</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px">[/PHP]</span></p><p><span style="font-size: 22px"></span></p><p><span style="font-size: 22px">meka localhost eke awulak nathuwa run wenawa bn ayi server eke me awula enne <img src="/styles/default/xenforo/smilies/default/sad.gif" class="smilie" loading="lazy" alt=":(" title="Sad :(" data-shortname=":(" /><img src="/styles/default/xenforo/smilies/default/sad.gif" class="smilie" loading="lazy" alt=":(" title="Sad :(" data-shortname=":(" /><img src="/styles/default/xenforo/smilies/default/sad.gif" class="smilie" loading="lazy" alt=":(" title="Sad :(" data-shortname=":(" /></span></p><p><span style="font-size: 22px"></span></p></blockquote><p></p>
[QUOTE="isurutmv, post: 22372169, member: 470006"] [SIZE=6]mcn codeigniter walin hadapu site ekak host kara host karala form ekakin data danna hadanakota mehema error ekak enawa [/SIZE] [B]A PHP Error was encountered[/B] Severity: Notice Message: Undefined variable: status Filename: models/Model_insert.php Line Number: 55 Backtrace: File: /home/dgicabse/public_html/application/models/Model_insert.php Line: 55 Function: _error_handler File: /home/dgicabse/public_html/application/controllers/Insert.php Line: 143 Function: insertbooking File: /home/dgicabse/public_html/index.php Line: 315 Function: require_once [B]A PHP Error was encountered[/B] Severity: Notice Message: Undefined variable: status Filename: models/Model_insert.php Line Number: 55 Backtrace: File: /home/dgicabse/public_html/application/models/Model_insert.php Line: 55 Function: _error_handler File: /home/dgicabse/public_html/application/controllers/Insert.php Line: 143 Function: insertbooking File: /home/dgicabse/public_html/index.php Line: 315 Function: require_once [B]A PHP Error was encountered[/B] Severity: Notice Message: Undefined variable: status Filename: models/Model_insert.php Line Number: 55 Backtrace: File: /home/dgicabse/public_html/application/models/Model_insert.php Line: 55 Function: _error_handler File: /home/dgicabse/public_html/application/controllers/Insert.php Line: 143 Function: insertbooking File: /home/dgicabse/public_html/index.php Line: 315 Function: require_once [B]A PHP Error was encountered[/B] Severity: Warning Message: Cannot modify header information - headers already sent by (output started at /home/dgicabse/public_html/system/core/Exceptions.php:271) Filename: helpers/url_helper.php Line Number: 564 Backtrace: File: /home/dgicabse/public_html/application/controllers/Insert.php Line: 144 Function: redirect File: /home/dgicabse/public_html/index.php Line: 315 Function: require_once [SIZE=6]me thiyenne eke code eka [PHP] public function insertbooking($data) { $this->db->where('vehical_number',$data['vehical_number']); $respond = $this->db->get('ongoing_booking'); if($respond->num_rows()>0){ foreach ($respond->result() as $row) { $enddate= $row->end_date; $bookingtime= $row->booking_time; $bookingdate=$row->booking_date; if(($enddate>$data['booking_date']) && ($bookingdate<$data['booking_date'])) { $status='not'; } else if (($enddate==$data['booking_date'])){ if($bookingtime>$data['booking_time']){ $status='not'; } } else if (($bookingdate==$data['booking_date'])){ if($bookingtime<=$data['booking_time']){ $status='not'; } } if($status=='not') { $this->session->set_flashdata('error','This Vehical Already booking'); redirect(base_url()."Admin/newbooking"); } else{ $this->db->insert("ongoing_booking",$data); } } } else{ $this->db->insert("ongoing_booking",$data); } } [/PHP] meka localhost eke awulak nathuwa run wenawa bn ayi server eke me awula enne :(:(:( [/SIZE] [/QUOTE]
Insert quotes…
Verification
Dawasata paya keeyak thibeda?
Post reply
Top
Bottom