[Nulled] » Nulled Warez Scripts » Forums scripts » Discuz! script » Call the DISCUZ database query method to query the database
November 16 2022

Call the DISCUZ database query method to query the database

<?php
define ('apptypeid', 5); // Should, you know
define ('curscript', 'userApp'); // Should, you know
retful_once'./source/class/class_core.php ';/it must be, you know
 $ discuz = & discuz_core :: execution (); // Should, you know
 $ Discuz-> cachelist = $ cachelist; // need, you know
 $ discuz-> init (); // Should, you know
 
 Echo "cur userId:". $ _ g ['uid']. "</br>; // Get the current user ID
 Echo "cur username:". $ _ g ['' username ']. "</br>; // As stated above, you know
 $ caserid = $ _g ['uid']; // Get the current user ID
// Using a database query, call the database query method DISCUZ
$cususerinfo = DB::fetch_first("SELECT * FROM ".DB::table('common_member')." WHERE uid='$curuserid'");
// Find out the current user's email
echo "<br/>".$cususerinfo['email'];
 // To check other information, enter the membership table in the database (find the table entered on the internet if you don't enter), find out the field name first, just change the Emal
 // Find out all users, sort by registration date
$query = DB::query("SELECT * FROM ".DB::table('common_member')." order by regdate" );
 Echo "<br/>"; //
// starting output
while($row = DB::fetch($query)) {
  echo  $row["uid"]."  " .$row["username"]."  ".$row["email"]."<br/>";
}
 
?>

Information

Visitors who are in the group Guests they can't download files.
Log in to the site under your login and password or if you are a new user go through the process registrations on the website.

Comments:

This publication has no comments yet. You can be the first!

Information the publication:

  • Author of the publication: zews
  • Date of publication: 16 November 2022 12:49
  • Publication category(s): Discuz! script / Modules Discuz!
  • Number of views of the publication: 201
  • Number of comments to the publication: 0

Related News

16 November 2022
Discuz! script / Modules Discuz!
discuz code

discuz code the diskuz method Registration method runlog()

Read more
16 November 2022
Discuz! script / Modules Discuz!
discuz

discuz —— , , ( ) The need for: ? ? ? discuz ? ?? Ucenter??? api????? discuz, Thinkphp32。 Ucenter , 。 discuz :

Read more
16 November 2022
Discuz! script / Modules Discuz!
About the custom html

About the custom html call of the static module discuz x1.5 Tags: HTML PHP In DIY, select module-> display

Read more
20 February 2022
Programming / Databases
SQL programming language

SQL Programming language Wikipedia A declarative programming language used to create, modify, and manage data in a

Read more
16 November 2022
Discuz! script / Modules Discuz!
using discuz

Discuz is an open source software, we use this software to manage the forum, we will briefly present the

Read more

Information

Users of visitor are not allowed to comment this publication.

Site Search

Site Menu


☑ Scripts Software

Calendar

«    May 2024    »
MonTueWedThuFriSatSun
 12345
6789101112
13141516171819
20212223242526
2728293031 

Advertisement

Survey on the website

Evaluate the work of the site
 

Statistics

  • +8 Total articles 5598
  • +23 Comments 3088
  • +38 Users : 3995