Home > Download >  Library download

  • Mainly introduces the click captcha click verification code class example implemented by PHP. Different from the traditional verification code in the past, this verification code class allows mobile phone users to click on a certain location to confirm the verification code, which is very practical Most of the commonly used form verification codes require user input, but this will be inconvenient for mobile users. If mobile users visit, they don’t need to enter it, but click a certain location to confirm the verification code, which will be much more convenient.

    Verification code library29582017-03-16
  • Detailed analysis and introduction of the encapsulated verification code class implemented by PHP. Write a verification code class in PHP and encapsulate it. Output the image to the browser by accessing this method, Get the randomly created verification code string by calling this method.

    Verification code library19302017-03-16
  • MYSQL database access encapsulation class MYSQL data access method, php4 supports the process access method starting with mysql_, php5 starts to support the process starting with mysqli_ and mysqli object-oriented Access method, this encapsulation class is encapsulated by mysql_ General process of data access: 1, connect to the database mysql_connect or mysql_pconnect 2, select database mysql_select_db 3, execute SQL query mysql_query 4, process the returned data mysql_fetch_array mysql_num_rows mysql_fetch_assoc mysql_fetch_row etc

    Database operation class12942017-03-16
  • introduces the example of PHP implementation of mysql encapsulation class, is responsible for linking, is responsible for switching databases, is responsible for Set the character set, is responsible for sending sql queries, is responsible for obtaining select results with multiple rows and columns.

    Database operation class11992017-03-16
  • Mainly introduces the connection Mysql class and usage encapsulated by PHP. It encapsulates simple MySQL database connection, query, traversal and other techniques based on PHP, and also explains its specific usage method, Create constructor database name hostname username password.

    Database operation class13692017-03-16
  • Introduces the MySQL class encapsulated by PHP based on the singleton mode, and analyzes the definition and usage of the MySQL class encapsulated by PHP using the singleton mode in combination with the complete example form Master the necessary conditions to satisfy the singleton pattern (1) Private constructor - to prevent using the new keyword to instantiate objects outside the class (2) Private member attributes-in order to prevent the attributes of storing objects from being introduced outside the class (3) Private cloning method-in order to prevent another object from being cloned outside the class (4) Public static methods-to allow users to instantiate objects

    Database operation class19742017-03-16
  • Aphp version of PDO database operation class (only applicable to Mysql) * Parameter Description * int $debug Whether to enable debugging, if enabled, the sql statement will be output * 0 Not enabled * 1 Open * 2 Start and terminate the program * int $mode return type * 0 Return multiple records * 1 Return a single record * 2 Return the number of rows * string/array $table database table, two value-passing modes * Normal mode: * 'tb_member, tb_money' * Array mode: * array('tb_member', 'tb_money') * string/array $fields Database fields to be queried, allowed to be empty, default is to search all, two value-passing modes * Normal mode: * 'username, password' * Array mode: * array('username', 'password') * string/array $sqlwhere query conditions, empty allowed, two value-passing modes * Normal mode: * 'and type = 1 and username like "%os%"' * Array mode: * array('type = 1', 'username like "%os%"') * string $orderby sorting, the default is id reverse order

    Database operation class16912017-03-16
  • Introduced the PHP database link class (PDO Access) for friends to learn and refer to. Access is a development tool software for database applications, and its development targets are mainly Microsoft JET database and Microsoft SQLServer database. In future versions, Microsoft will integrate the JET database engine into the Windwos operating system and release it as part of the system component.

    Database operation class16412017-03-16
  • Mainly introduces PHP's PDO common class library, and analyzes the common connection, initialization, addition, deletion, modification, and other operation skills of PDO class library in the form of examples. Get the end of the form Primary key, Check whether the data already exists (depending on conditions), Preprocessing and deletion (Note: It is recommended to use the INT type for the primary key), Return Single field data or single record ##.

    Database operation class20162017-03-16
  • The singleton mode is introduced to ensure that this class will not be instantiated repeatedly in global calls, reducing the waste of system resources. An object (before learning the design pattern, you need to have a better understanding of the orientation Object thinking) is only responsible for a specific task. The application of PHP is mainly in database applications, so there will be a large number of database operations in an application. Using the singleton mode can avoid a large number of resources consumed by new operations.

    Database operation class14592017-03-16
  • Mainly introduces the php mysql encapsulation class example code, database connection, database execution statement, executable query addition, modification, deletion and other sql Statement, is used in debugging. When an error occurs in the sql statement, it will be automatically printed out. Separates the system database from the user database for a more intuitive display. ##

    Database operation class16752017-03-16
  • A php encapsulation class for operating mysql, static properties, shared by all database instances, to avoid repeated connections to the database, status, 0 indicates that the query conditions are clean, 1 indicates that the query conditions are contaminated, ensures that there are no errors when using keywords in the instructions, obtains the field information of the data table, Filter and format the data table fields, The execution statement returns the number of affected rows for INSERT, UPDATE and DELETE, and the exec result returns. ##

    Database operation class26762017-03-16