Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Add now() function to DB Query Builder
Post: RE: Add now() function to DB Query Builder

Why not use now() directly like that? Code: -- $this->db->set('mytime', 'now()', false); --
2,393 Views
1 Replies
06-05-2017, 06:14 AM
Rufnex
    Thread: Resizing image does not work
Post: RE: Resizing image does not work

Your answer is in your quuote .. you have to install an image library like GD.
3,852 Views
3 Replies
05-24-2017, 07:53 AM
Rufnex
    Thread: need help about database query builder
Post: RE: need help about database query builder

Try soemthing like that: Code: -- UPDATE points SET totalPoints = IF(totalPoints < 2000, 2000, totalPoints ) --
1,999 Views
2 Replies
05-21-2017, 11:44 PM
Rufnex
    Thread: query builder
Post: RE: query builder

You have to query the selected result e.g. with "$rs->result()" ... https://www.codeigniter.com/userguide3/database/results.html Edit: havent seen the use of result in your query ^^ .. sorry .. Pau...
2,404 Views
2 Replies
05-19-2017, 11:41 PM
Rufnex
    Thread: Preg_match dd-mm-yyyy
Post: RE: Preg_match dd-mm-yyyy

Try something like that (or use php checkdate method) Code: -- preg_match('/^(\d{2})-(\d{2})-(\d{4})$/', $this->input->post('dob')); --
7,308 Views
2 Replies
05-19-2017, 02:23 AM
Rufnex
    Thread: If date is == 0000-00-00 question
Post: RE: If date is == 0000-00-00 question

You can do a conditional check like if(strtotime($user_info['dob']) == 0) or $data['dob'] = (strtotime($user_info['dob']) == 0) ? '' : date("d-m-Y", strtotime($user_info['dob']));
2,530 Views
2 Replies
05-18-2017, 12:40 AM
Rufnex
    Thread: What's wrong with mysql reset auto increment in codeigniter?
Post: RE: What's wrong with mysql reset auto increment i...

Why an reset? Normaly you do a "truncate table" for an reset. but you have to think about dependences.
8,210 Views
6 Replies
05-18-2017, 12:33 AM
Rufnex
    Thread: You did not select a file to upload.
Post: RE: You did not select a file to upload.

You can make a condition check like: Code: -- if ($this->upload->do_upload('userfile')) { $upload_data = $this->upload->data(); # upload logic ... } --
10,124 Views
3 Replies
05-17-2017, 04:18 AM
Rufnex
    Thread: database error when using DISTINCT and ORDER BY
Post: RE: database error when using DISTINCT and ORDER B...

Does this not work? Code: -- $this->db->select('distinct message_user_id, message_user_name, message_id'); --
7,829 Views
7 Replies
05-07-2017, 12:30 AM
Rufnex
    Thread: Url routes to greek
Post: RE: Url routes to greek

Maybe a typo? 'page/apartment/$1/$2' missing s in apartements
3,985 Views
2 Replies
05-05-2017, 01:49 PM
Rufnex
    Thread: csv_from_result only returning column labels
Post: RE: csv_from_result only returning column labels

Maybe your sql statement is wrong? You should have somethink like that: Code: -- $query = $this->db->query("SELECT learnerID, NameFirst, NameLast, MobileNumber FROM your_table"); --
4,221 Views
3 Replies
05-05-2017, 01:47 AM
Rufnex
    Thread: database error when using DISTINCT and ORDER BY
Post: RE: database error when using DISTINCT and ORDER B...

Try this: Code: -- $this->db->select('message_user_id, message_user_name, message_id'); --
7,829 Views
7 Replies
05-05-2017, 01:42 AM
Rufnex
    Thread: Deleting folders and their content.
Post: RE: Deleting folders and their content.

Try to remove the folder and content with nativ php .. if there is the same behavior you must have a config, logic or error. For e.g. like that: Code: -- function recursiveRmDir($dir) { $i...
9,079 Views
9 Replies
04-23-2017, 10:39 AM
Rufnex
    Thread: Deleting folders and their content.
Post: RE: Deleting folders and their content.

Try to add a / to the end of your path: C:\wamp64\www\foresight\public\uploads\731e315adc887be41cc84be0f5c73f76\
9,079 Views
9 Replies
04-21-2017, 01:55 PM
Rufnex
    Thread: Deleting folders and their content.
Post: RE: Deleting folders and their content.

@dave friend: jup, you're right. simple print out the return value to check if the path it correct.
9,079 Views
9 Replies
04-20-2017, 02:27 PM
Rufnex
    Thread: Deleting folders and their content.
Post: RE: Deleting folders and their content.

After your method call in $company_folder you will have a string like that: public_html/htdocs/uploads/731e315adc887be41cc84be0f5c73f76 This directory should be deleted with all content ... can ...
9,079 Views
9 Replies
04-20-2017, 12:44 PM
Rufnex
    Thread: German User
Post: German User

Hallo Leute, vor längere Zeit habe ich mal eine dt. Forum eingerichtet, was mangels Nachfrage wieder eingestellt wurde. Die Idee für einen dt. Support für CI schlummer nach wie vor in mir, daher mö...
4,322 Views
4 Replies
04-18-2017, 07:46 AM
Rufnex
    Thread: preg_match(): Compilation failed: regular expression is too large
Post: RE: preg_match(): Compilation failed: regular expr...

It's not an CI problem its an problem of the regx itself. it's to big and run into an recursion limit. The only way to handle this correctly is to think about an smaller solution.
23,015 Views
10 Replies
06-09-2015, 12:18 PM
Rufnex
    Thread: how can i build websocket application using codeigniter
Post: RE: how can i build websocket application using co...

sachin205 Wrote: (01-19-2015, 11:57 PM) -- Rufnex Wrote: (12-24-2014, 03:54 AM) -- Codeigniter cant do this out of the box. You can include a library like http://socketo.me/ that can do this or take...
66,233 Views
12 Replies
04-29-2015, 02:15 AM
Rufnex
    Thread: Forbidden to acces CI/application
Post: RE: Forbidden to acces CI/application

You have to open your webroot. Look in your /application/controller folder. You can call the controller by the name in the url and the methods as second part of the url. e.g. you have a file called we...
8,221 Views
3 Replies
04-23-2015, 02:02 PM
Rufnex

Theme © iAndrew 2016 - Forum software by © MyBB