I was wondering

Started by therockers, April 15, 2013, 03:32:41 AM

Previous topic - Next topic

therockers

Hello. I really love SMF. But I wanna know what it's called when SMF retrieves two data from a row. Such as when you have | in between a buddy and SMF reads just the IDs before the |. What is that called? Or do you have to specify it in PHP?

Douglas

could be a data separator.  You can use http://php.net/explode and http://php.net/implode to learn more about that (if I'm understanding you correctly)
Doug Hazard
* Full Stack (Web) Developer for The Catholic Diocese of Richmond
(20+ Diocesan sites, 130+ Church sites & 24 School sites)
* HBCUAC.org Web Developer, the NAIA's only HBCU Athletic Conference
* Former Sports Photographer and Media Personality and Former CFB Historian
* Tech Admin for one 2.9M+ post and one 11.6M+ post sites. Used to own a 1M+ post site.
* WordPress Developer (Junkie / Guru / Maven / whatever)

therockers

Quote from: Douglas on April 15, 2013, 07:33:15 AM
could be a data separator.

Thanks. I believe it's explode. I should of given a better example. Like for example.

usernames:
admin's id = 1
moderator's id = 32
technical's id = 61
guest = 2
test = 51

admin's buddy row in MySQL looks like this:
32 | 61 | 2 | 51

moderator's buddy row in MySQL looks like this:
1 | 61 | 2 | 51

.etc....

That's what I was actually looking for, but explode is similar to what I'm looking for.

Douglas

If you're going to adjust SMF related stuff, do us all a favor and create backups first before manually adjusting any coding or queries. :)
Doug Hazard
* Full Stack (Web) Developer for The Catholic Diocese of Richmond
(20+ Diocesan sites, 130+ Church sites & 24 School sites)
* HBCUAC.org Web Developer, the NAIA's only HBCU Athletic Conference
* Former Sports Photographer and Media Personality and Former CFB Historian
* Tech Admin for one 2.9M+ post and one 11.6M+ post sites. Used to own a 1M+ post site.
* WordPress Developer (Junkie / Guru / Maven / whatever)

Advertisement: