Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: How to update all rows in database using batch update?
Post: RE: How to update all rows in database using batch...

silentium Wrote: (04-20-2015, 03:00 PM) -- Hi, I would do something like this. Added comments to the code to try and make it clear how it works. Controller PHP Code: -- function ghjk() { ...
24,295 Views
2 Replies
04-21-2015, 12:22 AM
paju89
    Thread: How to verify if a user is logged in?
Post: RE: How to verify if a user is logged in?

lexxtoronto Wrote: (04-20-2015, 12:51 PM) -- Im using a session database. I set some custom data in the session: Code: --            $sessiondata=array('username'=>$username, 'loginuser'=>TRUE...
28,502 Views
7 Replies
04-20-2015, 02:27 PM
paju89
    Thread: results from site_url()
Post: RE: results from site_url()

cupboy Wrote: (04-19-2015, 08:42 AM) -- I tried that .htaccess file but it didn't change the results any. -- hope this helps Code: -- RewriteEngine On # !IMPORTANT! Set your RewriteBase he...
4,794 Views
5 Replies
04-20-2015, 02:21 PM
paju89
    Thread: How to update all rows in database using batch update?
Post: How to update all rows in database using batch upd...

I want to update database and add slug to every row. Problem is the code i wrote only update 1 row. here is the structure of database site_id integer primarykey autoincrement site_titl...
24,295 Views
2 Replies
04-20-2015, 02:07 PM
paju89
    Thread: Page href Problem in menu bar
Post: RE: Page href Problem in menu bar

Chandini Wrote: (12-26-2014, 03:12 AM) -- I am new in CodeIgniter .. I want To create a sample basic site Using Codeigniter ... Create a sample Menu bar  using Youtube videos to to make a code .. but...
6,846 Views
0 Replies
12-26-2014, 08:02 AM
paju89
    Thread: How to use cronjob in codeigniter?
Post: How to use cronjob in codeigniter?

Hello all. I am interested in using cronjob in codeigniter framework. I have controller named welcome   and method inside it named auto   how can i use cronjob and call this url     www.mywebsite.com...
3,944 Views
0 Replies
12-26-2014, 07:46 AM
paju89
    Thread: How to grab content of website automaticly?
Post: RE: How to grab content of website automaticly?

Rufnex Wrote: (12-23-2014, 01:14 PM) -- Why not use a cronjob for that kind of task? -- cronjob is next step of grabbing. i meant before cronjob needed someway to get last news of any website which i...
6,425 Views
0 Replies
12-25-2014, 07:42 AM
paju89
    Thread: How to grab content of website automaticly?
Post: RE: How to grab content of website automaticly?

Rufnex Wrote: (12-22-2014, 12:55 AM) -- You can check this lib for your project: https://github.com/Lukeas14/codeigniter_crawler -- Thank you Rufnex for your answer. But i have already built functi...
6,425 Views
0 Replies
12-22-2014, 03:40 AM
paju89
    Thread: Stuck at registering
Post: RE: Stuck at registering

at first check your codeigniter application folder and config folder inside find config.php , database.php and replace old records with your new datas which provides your database login password host...
2,542 Views
0 Replies
12-21-2014, 02:40 PM
paju89
    Thread: How to grab content of website automaticly?
Post: How to grab content of website automaticly?

I am bulding a website as news aggregator. When i add new url to my website i grab content of it and show users in a frame within my website. I need logic of news aggregator website which does all pr...
6,425 Views
0 Replies
12-21-2014, 02:18 PM
paju89
    Thread: news category and subcategory
Post: RE: news category and subcategory

$this Wrote: (12-10-2014, 08:59 AM) -- That's my fault, replace the code by this one : PHP Code: -- $query = $this->db->from("news")                ->join("cat", "news.cat_id = cat.cat_id") ...
7,977 Views
0 Replies
12-10-2014, 09:04 AM
paju89
    Thread: news category and subcategory
Post: RE: news category and subcategory

$this Wrote: (12-10-2014, 07:32 AM) -- Hello, First of all, you could make your query much clearer & easier like this : PHP Code: -- return $this->db->get_where("news", array("cat_id" => $ca...
7,977 Views
0 Replies
12-10-2014, 08:57 AM
paju89
    Thread: news category and subcategory
Post: RE: news category and subcategory

the below code gives error Code: -- Error Number: 1052 Column 'cat_id' in where clause is ambiguous SELECT * FROM (`news`) JOIN `cat` ON `news`.`cat_id` = `cat`.`cat_id` WHERE `cat_id` = '1' ...
7,977 Views
0 Replies
12-10-2014, 08:47 AM
paju89
    Thread: news category and subcategory
Post: news category and subcategory

i have table CAT if parent_id is set to zero its main if not its subcategory cat_id | name |parent_id 1 Bob 0 2 John 1 3 Mike 1 and table...
7,977 Views
0 Replies
12-10-2014, 05:14 AM
paju89
    Thread: How to structure effectively news and category relationship ?
Post: RE: How to structure effectively news and category...

Please post it again
5,986 Views
0 Replies
12-09-2014, 08:44 AM
paju89
    Thread: How to structure effectively news and category relationship ?
Post: RE: How to structure effectively news and category...

i saw and when i replied it disappeared
5,986 Views
0 Replies
12-09-2014, 08:43 AM
paju89
    Thread: How to structure effectively news and category relationship ?
Post: RE: How to structure effectively news and category...

Thank you very much i will test it.
5,986 Views
0 Replies
12-09-2014, 08:42 AM
paju89
    Thread: How to structure effectively news and category relationship ?
Post: How to structure effectively news and category rel...

i have two tables in database CATEGORY table below if parent id is set to 0 is main category if it is set to any its subcategory cat_id | name | parent_id ---------------------...
5,986 Views
0 Replies
12-09-2014, 08:21 AM
paju89
    Thread: In Model how to select all last data starting from 5th row ?
Post: RE: In Model how to select all last data starting ...

includebeer Wrote: (12-07-2014, 07:11 PM) -- Remove the "where" clause and use "limit" : $this->db->limit(5); -- thank you for reply if if use limit(5) result will give me last 5 rows but my que...
3,327 Views
0 Replies
12-08-2014, 04:21 AM
paju89
    Thread: In Model how to select all last data starting from 5th row ?
Post: In Model how to select all last data starting from...

For examle there is 10 rows in table. My issue is how to fetch all data but starting from 5th row and 4 3 2 1 and so on? Below code works but only with id numbers. so when my datas in table id will b...
3,327 Views
0 Replies
12-06-2014, 04:12 AM
paju89

Theme © iAndrew 2016 - Forum software by © MyBB