mysql - Separating comma broken words in PHP and selecting extra information -
I am trying to look into it for a while, but no answer can be found which coding is correct Basically I have a 'mysql' table that is a 'connection' related to a user. These connections are different with a comma:
connection1, connection2, connection3, connection4, etc.
What do I need to do to isolate each one in an array like this? :
$ connection1 $ connection2 $ connection3 $ connection4 Then for each of these I need to select the sorting information from a different table, For example:
(selection number, user name from user where username = (all connections above))
It is simple to use the explosion function of php. $ text = "connection1, connection2, connection3, connection4"; $ Res = Explosion (",", $ text); Forex currency ($ res = $ i = & gt; $ id) {ebb $ res [$ i]; }
Comments
Post a Comment