Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: DB Query Question
Post: RE: DB Query Question

Thank you!
6,188 Views
5 Replies
12-06-2018, 04:31 AM
soneax
    Thread: DB Query Question
Post: RE: DB Query Question

Can you answer me another question? If i want to query 2 tables, i join the second one based on ID for example, how can i loop the second table results with foreach if there is no child arrays for ...
6,188 Views
5 Replies
12-05-2018, 05:40 AM
soneax
    Thread: DB Query Question
Post: RE: DB Query Question

neuron Wrote: (12-05-2018, 03:54 AM) -- soneax Wrote: (12-05-2018, 03:15 AM) -- ID     Name     Refer_id 1       John       2 2       Alex        3 3       Peter       1 -- PHP Code: -- $this-...
6,188 Views
5 Replies
12-05-2018, 05:19 AM
soneax
    Thread: DB Query Question
Post: DB Query Question

Hi, I have a MySQL table with: user.id, user.name, user.refer_id I would like to query the DB once passing the user.id value, but i would like to use the same query to retrieve the refer name ba...
6,188 Views
5 Replies
12-05-2018, 03:15 AM
soneax
    Thread: Getting and Comparing Data in Foreach best pratice
Post: RE: Getting and Comparing Data in Foreach best pra...

php_rocs Wrote: (11-27-2018, 09:56 PM) -- @soneax, Is it possible to have 1 query or database view pull all of your data?  This way there will only be one call to the database. -- Ok, maybe with...
3,642 Views
4 Replies
11-28-2018, 12:48 AM
soneax
    Thread: Getting and Comparing Data in Foreach best pratice
Post: RE: Getting and Comparing Data in Foreach best pra...

Hi, sorry, when i mention table i wanted to say MySQL tables. Here's an example: PHP Code: -- -- I want to use $thing['id'] to query another MySQL table to get child data from this ID. This wil...
3,642 Views
4 Replies
11-27-2018, 10:09 AM
soneax
    Thread: why's that no data showing on my sidebar,even if it's on my admin or user side?
Post: RE: why's that no data showing on my sidebar,even ...

Maybe i'm wrong but perhaps you're not saving the type in the user session and then you're looking for something that don't exist - nothing to show.
3,326 Views
4 Replies
11-27-2018, 09:15 AM
soneax
    Thread: Getting and Comparing Data in Foreach best pratice
Post: Getting and Comparing Data in Foreach best pratice

Hi, I'm asking for your help to understand if i'm doing something in the correct way or if exist another method to do this. I have a foreach in my view to retrieve rows and their data from a specifi...
3,642 Views
4 Replies
11-27-2018, 09:02 AM
soneax
    Thread: CodeIgniter 4.0.0-alpha.2 Released
Post: RE: CodeIgniter 4.0.0-alpha.2 Released

Awesome team :)
46,508 Views
26 Replies
11-06-2018, 10:51 AM
soneax
    Thread: What $data[] stands for
Post: RE: What $data[] stands for

Thank you!
2,429 Views
2 Replies
10-01-2018, 08:40 AM
soneax
    Thread: What $data[] stands for
Post: What $data[] stands for

Hi, I'm trying to learn more advanced PHP with Code Igniter and i'm starting from the Tutorial in Docs. There in the News model i have: Code: -- $data['news'] = $this->news_model->get_news...
2,429 Views
2 Replies
10-01-2018, 03:11 AM
soneax

Theme © iAndrew 2016 - Forum software by © MyBB