Get the column name containing a specified value of a specified row with CodeIgniter's query builder
Is it possible to return the column name of a row in a table? If so, how should I do it? I have a table with this structure ---------------------------------------------------------------------------- | idx | line1 | line2 | line3 | line1_action | line2_action | line3_action | ---------------------------------------------------------------------------- | 1 | 3 | 2 | 1 | PENDING | PENDING | APPROVED | ---------------------------------------------------------------------------- For example i have an idx = 1 and my line = 2, and I need to check if I am in the lines 1, 2 or 3 of idx = 1, How do I
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.