The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
![]()
Say I have the following setup:
Code:
| table: athlete | +--------------------------------+ | id | name | sports +--------------------------------+ | 1 | 'John' | '1, 2' | table: sport | +----------------+ | id | title +----------------+ | 1 | 'soccer' +----------------+ | 2 | 'track' PHP Code:
Code:
John enjoys soccer & track If I had only 1 sport, say soccer, inside the `sports` field for row 1 of table `athlete`, I could do the following: PHP Code:
Code:
John enjoys soccer Maybe return a subarray containing the values? I understand I could easily insert the names of the sports into the `athlete` table, but in my real code things are much more complicated, and I might have the sport title change, therefore I would have to search every row in the `athletes` table that contains the prior sport name(s) and update it to the new name. Sorry if my wording is confusing, the actual concept isn't, and hopefully there is a way to simply this process to my needs. ![]() [originally posted at Sitepoint] |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|