![]() |
Integration: Displaying records belonging to the logged-in user
I'm trying to integrate vBulletin with another part of my website via global.php, and have created additional tables related to my non-vB pages in the vB database.
e.g. In the vB database, I have created a table called "mysite_records." I have a field in this table called "userid" to relate it to my vB database. I am creating a page which will display records from the custom table that belong to the logged in user, but I am unsure of how to code this. I understand part of the query should be ("SELECT * FROM mysite_records WHERE userid=???"), but I am not sure what should be placed where the question marks are. I've tried $bbuserinfo['userid'], but that gives me a syntax error. Edit: Typo |
inside a string don't use ' for array keys :)
so $bbuserinfo[userid] will work |
That was much simpler than I thought it would be. Thanks for your help!
|
All times are GMT. The time now is 01:41 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|