This is a translated page. The original can be found here: http://iwebdevel.com/2009/07/20/codinghow-to-fetch-user-profile-data-with-ssi-php-from-a-smf-forum-database/
UPDATES VIA RSS | Email अद्यतन Via आरएसएस | ईमेल Get updates via feedburner Get updates via twitter
Home / Coding / MySQL / PHP / Coding:How to fetch user pro… घर / कोडिंग / MySQL / PHP / कोडिंग: कैसे उपयोगकर्ता समर्थक लेने के लिए ...

Coding:How to fetch user profile data with SSI.php from a SMF forum database : कोडिंग कैसे एक SMF मंच डेटाबेस से SSI.php के साथ उपयोगकर्ता प्रोफ़ाइल डेटा लाने के लिए

Posted on 20. 20 पर तैनात हैं. Jul, 2009 by Dragos in Coding , MySQL , PHP जुलाई, 2009 कोडिंग, MySQL, PHP में Dragos द्वारा

Even though SMF offers a way to integrate their forum into any website, they do not provide enough information on how to do some basic tasks, eg fetching a member's profile details from the database. हालांकि SMF एक तरह से किसी भी वेबसाइट में उनके एकीकृत मंच प्रदान करता है, वे पर्याप्त जानकारी कैसे कुछ बुनियादी काम करने के लिए पर नहीं प्रदान करते हैं, डाटाबेस से एक सदस्य प्रोफ़ाइल विवरण दिलकश उदा. Fortunately, Netbeans has a very helpful feature, the code Navigator which shows an instant preview of all functions available in an open file. सौभाग्य से, Netbeans एक बहुत ही उपयोगी सुविधा है, कोड नेविगेटर जो सभी एक खुला फाइल में उपलब्ध कार्यों का एक त्वरित पूर्वावलोकन दिखाता है. So finding the function which does our job was pretty easy (though I couldn't find it on SMF's website). तो समारोह जो हमारा काम बहुत आसान नहीं था खोज (हालांकि मैं यह है SMF वेबसाइट पर नहीं मिल) सकता है.

Anyway, to fetch data from the SMF database, using SMF's functions, we need to include SSI.php into our website. वैसे भी, SMF डेटाबेस से डेटा लाने के लिए है, SMF कार्यों का उपयोग कर, हम हमारी वेबसाइट में SSI.php शामिल की जरूरत है.

 include_once('path/to/your/forum/SSI.php'); // replace path/to/your/forum with your path to the SMF forum include_once '(रास्ता / / अपने मंच / के लिए / SSI.php); / / पथ की जगह / के लिए / अपने SMF मंच के लिए अपने रास्ते के साथ मंच /
$userData=ssi_fetchMember(1,''); //ssi_fetchMember() takes two parameters: first: the member id as an integer or more than one id passed in an array; second parameter: output method as string: 'echo' or ''; userData $ = ssi_fetchMember 1 (,''); / / () दो मापदंडों लेता है ssi_fetchMember:: पहले सदस्य एक पूर्णांक या एक से अधिक के रूप में पहचान एक सरणी में पारित, दूसरा पैरामीटर: स्ट्रिंग के रूप में उत्पादन विधि आईडी: 'प्रतिध्वनि' या ' '';
print_r($userData); //display the array containing the member's profile data ($ print_r userData); / / सदस्य प्रोफ़ाइल डेटा जिसमें सरणी प्रदर्शन 
Translate this post अनुवाद इस पोस्ट


Related posts: संबंधित पोस्ट:

  1. PHP Error: Call to a member function fetch_assoc() on a non-object in PHP त्रुटि: एक सदस्य को बुलाओ समारोह fetch_assoc () एक गैर में वस्तु
  2. PHP: How to get creation time of file with PHP on Linux machines : PHP कैसे Linux मशीन पर PHP के साथ फाइल का सृजन बार पाने के लिए

    blog comments powered by Disqus ब्लॉग टिप्पणियों Disqus द्वारा संचालित