Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: How to Insert Data Into Join Tables?
Post: RE: How to Insert Data Into Join Tables?

Read this part of the docs: Wrote: (05-26-2016, 07:22 PM) -- https://www.codeigniter.com/user_guide/database/transactions.html -- Thank you for your docs.
17,825 Views
6 Replies
05-27-2016, 01:16 AM
Phally Seng
    Thread: How to Insert Data Into Join Tables?
Post: RE: How to Insert Data Into Join Tables?

skunkbad Wrote: (05-26-2016, 08:52 AM) -- That is different. If you look carefully, what is being inserted is data that is being selected from three other tables. So it's not that the insert is a joi...
17,825 Views
6 Replies
05-26-2016, 06:34 PM
Phally Seng
    Thread: How to Insert Data Into Join Tables?
Post: RE: How to Insert Data Into Join Tables?

Yes, I think so. But I find this idea. How to do it in Codeigniter? Code: -- INSERT INTO table3 ( name, age, sex, city, id, number, nationality) SELECT name, age, sex, city, p.id, number, n.national...
17,825 Views
6 Replies
05-26-2016, 01:00 AM
Phally Seng
    Thread: How to Insert Data Into Join Tables?
Post: How to Insert Data Into Join Tables?

I can select and join, but I can't insert with these below tables in the same time. How to insert data into joined tables? - tbl_category(cate_id, name, description) - tbl_brand(brand_id, brand_...
17,825 Views
6 Replies
05-25-2016, 08:42 PM
Phally Seng
    Thread: Can I create another Model beside MY_Model.php?
Post: RE: Can I create another Model beside MY_Model.php...

salain Wrote: (05-23-2016, 10:07 PM) -- Hi, MY_Model extend the CI_Model in order to give you some default method and properties that are not available in CI_Model. And you create your applicati...
5,182 Views
2 Replies
05-25-2016, 08:32 PM
Phally Seng
    Thread: Can I create another Model beside MY_Model.php?
Post: Can I create another Model beside MY_Model.php?

I now have application/core/MY_Model.php that extend CI_Model. I'd need to create another MY_Article_Model.php in the same path (I'm not sure it's a good idea to create MY_Article_Model.php), but an e...
5,182 Views
2 Replies
05-23-2016, 07:15 PM
Phally Seng
    Thread: Why use Spark with CI?
Post: RE: Why use Spark with CI?

ciadmin Wrote: (04-29-2016, 09:43 PM) -- Spark is long dead. Check the date of the tutorials that mention it. If you want to handle dependencies, look at Composer instead. -- Thank you. Can you te...
18,418 Views
4 Replies
04-30-2016, 11:29 PM
Phally Seng
    Thread: Database algorithms for Ecommerce web
Post: Database algorithms for Ecommerce web

I'm a university student, I'd like to create an Ecommerce project for my assigment. I don't know very well about adjecency list model vs nested sets in MySQL. Which one is best for my project or other...
3,207 Views
1 Replies
04-29-2016, 07:36 PM
Phally Seng
    Thread: Why use Spark with CI?
Post: Why use Spark with CI?

Hello there, I'm new with CI 3, I've read some tutorials they recommend to use spark, and I don't important it is. My question: 1/ Why Spark is useful in CI?  2/ When do we use Spark?  3/ Which websi...
18,418 Views
4 Replies
04-29-2016, 07:22 PM
Phally Seng

Theme © iAndrew 2016 - Forum software by © MyBB