Kinsa nakabuhat na web-apps ani? Need help...
Unsaon nako pag-connect ug multiple databases? I've tried following the user guide, but to no avail.
Or basin naa mo custom library ani na pwede nako magamit?
Thx..
Kinsa nakabuhat na web-apps ani? Need help...
Unsaon nako pag-connect ug multiple databases? I've tried following the user guide, but to no avail.
Or basin naa mo custom library ani na pwede nako magamit?
Thx..
Unsa imo gi mean na pag-connect ug multiple database? sa sql? or sa code? then tingali kinahanglan pud nimo e specify ug unsa na language (C#,C++, ect) or database (like MSSQL or MySQL, ect..)?
ani ang pag load sa mga dbase sa CodeIgniter, a framework for PHP. di na kelangan i-specify and dbase or language. maka-connect ko sa db1, pro sa rest diliOriginally Posted by pokloy
Code:$this->CI->load->database('db'); $this->CI->load->database('db2'); $this->CI->load->database('db3'); .... $query = $this->CI->db->getwhere($this->user_table); $query2 = $this->CI->db2->getwhere($this->user2_table); $query3 = $this->CI->db3->getwhere($this->user3_table);
sa imo first post wala nimo na mention na u r using PHP.. Kung mao ni wala ko kalibutan ani..
PHP is a computer language...
sa ako first post, nag mention ko CODE IGNITER, a PHP Framework. Ang CODE IGNITER di na kelangan mangayo ug language. kay PHP man jud na ang iya.Originally Posted by pokloy
Aw Framework diay ning Code Igniter para sa PHP.. hehehe.. abi nako buhaton pani na Framework... Samot wala jud ko kalibutan.. hehehe.. peace Bro..
I haven't used CI in a while, but in 2006, there was a multiple DB bug and it was still there late 2007.
http://codeigniter.com/bug_tracker/bug/2703/
Might want to try this solution ...
http://koorb.wordpress.com/2007/11/1...ple-databases/
I think it will only permit you to access only one(1) database at a certain time.
Imagine this...... if you use mysql_close() it will close all possible connection.
haha... silly me. kalimot ko pwede man diay ko gamit ani. MVC, nya wa ko mu-gamit M(odel). pikat nako. hakhak. tnx. i'll try this one.Originally Posted by vern
CI could access multiple dbases, just wa ko nag-gamit utok. haha.Originally Posted by dodie
Similar Threads |
|