PHP common program reference (UNIX operating system)

zhaozj2021-02-12  133

PHP common program reference (UNIX operating system) 2004-06-24 Click: 68

PHP common program reference (UNIX operating system)

Common programming (UNIX operating system)

1. Database connection file: Conn.php (Configuration file connection to the MySQL database) 2, Database list file: list_alltb.php (list all the table names in the database) "; // the code below start tolist all the tables in the database "; echo"

" WHILE ($ RESULT) {$ TB_NAMES [$ I] = mysql_tablename ($ Result, $ I); Echo " / n"; foreach ($ line as $ col_value) {print "/ t / t <

TD> $ col_value / n ";} print" / t / n ";} print" / n "; / * Release Resource * / MySQL_Free_Result ($ results); / * Disconnect * / mysql_close ($ LINK);?> 4, database manipulation file: operatedb.php (Increase, delete, modification) 5, File Operator: FileOperate.php (most common file operation)

转载请注明原文地址:https://www.9cbs.com/read-7425.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.054, SQL: 9
$ TB_NAMES [$ I] / n "; $ I ;} echo" "; mysql_free_result ($ result); // free the res Ource at the end?> 3, database query file: selectdb.php (Database query, display) / n"; while ($ line = mysql_fetch_Array ($ result, mysql_assoc)) {Print "/ t