Hi all and thank you for reading...
Ive been trying to find a fix to a SQL and PHP problem I have. below is a snippet of the table I am trying to work with.
The table is called web_navbar_links the field is called slug
+------------------+-------+
| slug | child |
+------------------+-------+
|business-multiseat| 1 |
+------------------+-------+
|consumer-multiseat| 1 |
+------------------+-------+
I have a string "multiseat" I need an SQL query that will search all the rows and pull back the first substring "business" and/or "consumer" that match the string "multiseat" and are also child='1'.
I have tried concat_ws and LIKE but dont feel they are the correct commands unless ofc I dont understand there usage :D
If anyone can help me I would be very greatful.
Dan.