Log in

View Full Version : How to pull info from database to external files?


christian8a
12-19-2008, 12:24 PM
Ok guys I need help here...
I have a product that I made wich is a PHP emailer popup.
It is on the folder ex: root/emailer/index.php

If I would want to display the profile picture or avatar of the person sending the email, such an invitation to a friend, how would I pull that info from the database?
From where should I start looking for in order to get this done?
Any help much appreciated
Chris___

SEOvB
12-19-2008, 02:18 PM
Include global.php that should get you the userID i assume, then check out a few of the other vbulletin files for the SQL query to get the avatar of the user, I forget which file it is, or i'd tell ya to save the time.