Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Code Igniter

  1. #11

    Connecting to Multiple Databases

    If you need to connect to more than one database simultaneously you can do so as follows:
    $DB1 = $this->load->database('group_one', TRUE);
    $DB2 = $this->load->database('group_two', TRUE);

    Note: Change the words "group_one" and "group_two" to the specific group names you are connecting to (or you can pass the connection values as indicated above).

    By setting the second parameter to TRUE (boolean) the function will return the database object.

    When you connect this way, you will use your object name to issue commands rather than the syntax used throughout this guide. In other words, rather than issuing commands with:

    $this->db->query();
    $this->db->result();
    etc...

    You will instead use:

    $DB1->query();
    $DB1->result();
    etc...

  2. #12
    Note: By setting the second parameter to TRUE (boolean) the function will return the database object.

    Maon ni imong paramter kulang bro...

    test lang....

    cheers...!!!

  3. #13
    please check this! multiple database connection bug report from code igniter...


    Bug Report - Multiple Databases Query | Bug Tracker | CodeIgniter

    cheers!

  4. #14
    In CI, you can use this in your model "SELECT colA, colB FROM db.table1 tb1, db2.table2 tb2"

    The unpopular posts:Articles and blog on practical approaches to web and supporting technologies.

  5. #15

    Default I need help on code igniter

    bago ra ko nkadownload ug code igniter.. ingon sila nice daw au ni ug gusto ka mubuhat ug website. kaya lang galisod man ko ug unsaon paggamit sa code igniter. nisulay nko ug basa ug user guide pero dili man gud ko programmer jud so mao to wala au to nkatabang nko.. pwede patabang? salamat

  6. #16
    C.I.A. Platinum Member carmicael's Avatar
    Join Date
    Jul 2007
    Gender
    Male
    Posts
    2,142
    Quote Originally Posted by autumn View Post
    bago ra ko nkadownload ug code igniter.. ingon sila nice daw au ni ug gusto ka mubuhat ug website. kaya lang galisod man ko ug unsaon paggamit sa code igniter. nisulay nko ug basa ug user guide pero dili man gud ko programmer jud so mao to wala au to nkatabang nko.. pwede patabang? salamat
    unless you know PHP(and/or SQL+Apache), you won't be able to use CI. have you configured Apache(or PHP)? have you installed CI using the instructions on the user guide? there are a lot of possibilities as to why you can't use CI yet.

    "CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications. If you're a developer who lives in the real world of shared hosting accounts and clients with deadlines, and if you're tired of ponderously large and thoroughly undocumented frameworks"

    at least have a background on PHP, and webservers.

    hope this helps.

    cheers.

  7.    Advertisement

Page 2 of 2 FirstFirst 12

Similar Threads

 
  1. Replies: 11
    Last Post: 04-11-2013, 07:13 PM
  2. Code igniter .. Unsaon?
    By Sorry in forum Programming
    Replies: 14
    Last Post: 11-10-2012, 02:39 PM
  3. tabang sa nakahibaw diha (php code igniter).. :)
    By Sorry in forum Programming
    Replies: 3
    Last Post: 10-29-2010, 07:35 AM
  4. labor code..employee proby status ug regular status
    By zengatsu in forum Politics & Current Events
    Replies: 73
    Last Post: 09-23-2009, 03:09 PM
  5. Dan Brown's The Da Vinci Code
    By JuRa^ in forum Arts & Literature
    Replies: 266
    Last Post: 09-09-2006, 02:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top