#1
Hello good day,
Is it possible ?
#2
Hi there,

Could you please share more information?
comment out both '$this->model->update...' lines and insert the code below, right after the last commented out update

then paste back what you see and would also be nice to see the code for _get_instrument_id()
#3
hello,
_get_instrument_id(); is fine . dse_financial_keys table have column id,dse_instrument_id, col1, when i update a row i also want to update the dse_instruments table pubdate column. where dse_instruments.id = dse_financial_keys.dse_instrument_id.
In codeigniter i use this

the _get_instrument_id() is
#4
Also try this but not working
#5
It's pretty hard to help someone when they ignore instructions to clarify what data they are working with; we should rename this help-bar to riddle-desk

Does $update_id = $dse_instrument_id ?

Have you tried to put the model into debug mode by changing line 13 to see the generated sql?:


I was thinking you had no column named 'id' in the '$dse_instrument_id' table as $this->model->update() always assumes an 'id' column exists, but as you rewrote the call using a query_bind() the sql generated should look like this:


Can you share more information?

or is it just a simple typo > where you have dse_instruments`.`id` in the query bind and $dse_instrument_id in the update query?
#6
Sorry to bother everybody,
I mass up the two table primary id . my first code is fine ,its work properly.

actually i transfer my codeigniter code to trongate.
Thanks to all.
And waiting for Trongate CMS video tutorial...
#7
Investobd,
I think that this tutorial series is very good. Might not be exactly what you are wanting in a
CMS Tutorial, but it is very good.
https://www.youtube.com/channel/UCQ7GqReazCtc1-9DEQEeW6w/videos

Dan
#8
That's OK investobd, you kept me thinking...

Could you close off the thread when you get a chance.