Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Database Connection Error Handling
Post: RE: Database Connection Error Handling

https://stackoverflow.com/questions/25745462/how-to-connection-error-handling-in-codeigniter-php (https://stackoverflow.com/questions/25745462/how-to-connection-error-handling-in-codeigniter-php)
1,849 Views
1 Replies
10-12-2019, 07:54 PM
tp45
    Thread: how to catch db error
Post: RE: how to catch db error

Try PHP Code: -- if($this->db->insert($table,$data)){   return true; }else{   return false; //or echo $this->db->error(); } --
27,940 Views
8 Replies
10-12-2019, 07:44 PM
tp45
    Thread: [split] Codeigniter web.config index.php rewrite inside a subdirectory
Post: RE: [split] Codeigniter web.config index.php rewri...

try this .htaccess Code: -- RewriteEngine on RewriteCond $1 !^(index\.php|assets|images|js|css|uploads|favicon.png) RewriteCond %(REQUEST_FILENAME) !-f RewriteCond %(REQUEST_FILENAME) !-d Rewrit...
3,115 Views
1 Replies
10-09-2019, 10:04 AM
tp45
    Thread: Multiple applications server setup
Post: RE: Multiple applications server setup

if you are able to call it this way  example.com example.com/project2.php Then on server it should still be.  example.com/project2 if not then use two domains
2,648 Views
2 Replies
10-09-2019, 09:53 AM
tp45
    Thread: Codeigniter throws 502 error CloudFlare while using session
Post: RE: Codeigniter throws 502 error CloudFlare while ...

try  PHP Code: -- $config['sess_driver'] = 'database'; //files sess_driver locally $config['sess_cookie_name'] = 'ci_session'; $config['sess_expiration'] = 7200; $config['sess_save_path'] = 'user...
2,625 Views
1 Replies
10-09-2019, 09:38 AM
tp45
    Thread: How to get values from single coloumn
Post: RE: How to get values from single coloumn

Controller PHP Code: -- public function yourfunName(){ $data['gener_num'] = $this->yourModel->youModelFunction(); } -- View PHP Code: --    -- regards
5,501 Views
3 Replies
10-09-2019, 09:21 AM
tp45
    Thread: get users who live within 10 km radius of the current logged in user codeigniter 3
Post: RE: get users who live within 10 km radius of the ...

Wouter60 Wrote: (10-06-2019, 09:56 AM) -- First, get all "other" users from your database, i.e. all users where id is not the id of the current user. Get the results in an array named $users. Also c...
2,930 Views
2 Replies
10-06-2019, 10:58 AM
tp45
    Thread: get users who live within 10 km radius of the current logged in user codeigniter 3
Post: get users who live within 10 km radius of the curr...

Hello am trying to get all user who are within 10 km radius of the current logged in user so i tried getting only the addresses i get them but now i want to link the addresses with their owners so tha...
2,930 Views
2 Replies
10-05-2019, 04:29 PM
tp45
    Thread: Getting data in a big array codeigniter
Post: RE: Getting data in a big array codeigniter

dave friend Wrote: (10-02-2019, 11:48 AM) -- Just trying to offer advice to make your life easier by saying you don't have to enclose each line of the above in PHP tags. In other words, the following...
10,546 Views
8 Replies
10-02-2019, 04:11 PM
tp45
    Thread: Getting data in a big array codeigniter
Post: RE: Getting data in a big array codeigniter

Ok it worked this way PHP Code: -- Controller $data['suggested'] = $this->User_model->getFriendSuggestions(); View                                   -- Thank you for helping me and by replying n...
10,546 Views
8 Replies
10-02-2019, 05:16 AM
tp45
    Thread: Getting data in a big array codeigniter
Post: RE: Getting data in a big array codeigniter

Wouter60 Wrote: (10-01-2019, 09:48 AM) -- By default, arrays start with index 0. So 0 is the key of the first element in an array, 1 for the next element and so on. In your code: PHP Code: -- ...
10,546 Views
8 Replies
10-01-2019, 05:13 PM
tp45
    Thread: Getting data in a big array codeigniter
Post: RE: Getting data in a big array codeigniter

Ok i got this far  $data['suggested'] = $this->User_model->getFriendSuggestions(); $data['suggest'] = array( 'suggestedUser' => $data['suggested'][0]->suggestedUser, 'mutualFriend'  => $data['su...
10,546 Views
8 Replies
09-27-2019, 02:20 PM
tp45
    Thread: Getting data in a big array codeigniter
Post: Getting data in a big array codeigniter

hello Am doing friend suggestion in my system so am close but i cant figure out how to access this data so what am doing getting users to suggest and their mutual friends but i only want suggested u...
10,546 Views
8 Replies
09-27-2019, 01:05 PM
tp45
    Thread: Codeigniter NotificationDrodownData dropdown menu
Post: RE: Codeigniter NotificationDrodownData dropdown m...

jreklund Wrote: (09-25-2019, 10:35 AM) -- I'm just going to guess here really, as it's hard to check the outputted data. But replace echo json_encode($return_string); with just echo $return_string; -...
3,078 Views
2 Replies
09-25-2019, 04:33 PM
tp45
    Thread: inner join with OR using codeigniter
Post: RE: inner join with OR using codeigniter

Wouter60 Wrote: (09-25-2019, 02:53 AM) -- Why is your function in a library? Database operations should be in a model (or in the controller). In a model, you don't need to define $CI. Simply use $th...
5,287 Views
4 Replies
09-25-2019, 06:49 AM
tp45
    Thread: Codeigniter NotificationDrodownData dropdown menu
Post: Codeigniter NotificationDrodownData dropdown menu

Hello  am trying to get notifications for user everything works but i get wired data with \t\t\t\t\t\t\t\t\t\t\t Vp and Vdiv etc here is my code: Model PHP Code: -- public function getNotifca...
3,078 Views
2 Replies
09-25-2019, 06:02 AM
tp45
    Thread: inner join with OR using codeigniter
Post: RE: inner join with OR using codeigniter

Wouter60 Wrote: (09-24-2019, 01:27 PM) -- Quote: -- i have a table called friends it has id, user_one, user_two and date -- What do you use 'user_one' and 'user_two' for? That's not clear to me...
5,287 Views
4 Replies
09-24-2019, 01:57 PM
tp45
    Thread: inner join with OR using codeigniter
Post: inner join with OR using codeigniter

Hello  am trying to get all my friends from database i have a table called friends it has id, user_one, user_two and date now i used this code and i was getting them but i couldn't get the date from...
5,287 Views
4 Replies
09-24-2019, 11:41 AM
tp45
    Thread: url friendly, redirect users to other users profile by usename
Post: url friendly, redirect users to other users profil...

Hello everyone  is it possible in codeigniter to redirect users by username in my site when users are logged in the url is like this: http://localhost/friendmiiDemo/posts (http://localhost/friendmii...
1,685 Views
1 Replies
09-21-2019, 06:27 AM
tp45
    Thread: Get today's posts
Post: RE: Get today's posts

jreklund Wrote: (09-18-2019, 11:34 AM) -- That's weird. What database engine and version are you using? I have only tested it with MySQL. -- Am using sql server 2017
8,712 Views
11 Replies
09-18-2019, 02:58 PM
tp45

Theme © iAndrew 2016 - Forum software by © MyBB