current location:Home > Technical Articles > PHP Framework > ThinkPHP
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- How to modify only one value in thinkphp
- How thinkphp only modifies one value: 1. Modify the data by calling the save() function under Model; 2. Modify the data by "$res = $user->where('ID=5')->save($data) ";" method is used to add the where condition, and then call the save function to modify the data value.
- ThinkPHP 1338 2022-12-05 10:37:42
-
- How to delete pictures in thinkphp image
- How to implement thinkphp image deletion of pictures: 1. Open the front-end code file; 2. Use the Ajax code "success:function(data) {...}" to achieve partial refresh; 3. Open the tp back-end code file and use "public function" delete_image(){...}" method can be used to delete image data.
- ThinkPHP 1331 2022-12-05 10:32:37
-
- How to get the modified id in thinkphp3.2
- How to get the modified id in thinkphp3.2: 1. Open the corresponding tp file; 2. Instantiate the User object through "$User = D("User");"; 3. Through "$insert = $User->add ($data);" method to obtain the primary key id of the newly added data.
- ThinkPHP 1300 2022-12-05 10:25:41
-
- How to delete multiple data in thinkphp
- How to delete multiple data in thinkphp: 1. Create a test data table in the mysql database; 2. In Thinkphp, create an index controller and inherit the Controller class; 3. Create a delMore() method for writing Delete data code; 4. Use the $where variable to store multiple data IDs to be deleted; 5. Delete multiple pieces of data through the delete() method.
- ThinkPHP 2300 2022-12-05 10:15:56
-
- What to do if thinkphp does not filter html tags
- Solution to thinkphp not filtering html tags: 1. Open the corresponding tp file; 2. Reverse the converted entities through the "strip_tags(htmlspecialchars_decode($data['post']['post_content']));" method That’s it.
- ThinkPHP 2258 2022-12-05 10:11:10
-
- What to do if thinkphp token verification fails
- Solution to thinkphp's token verification failure: 1. Turn off debug mode; 2. Open the config.php file and turn off page trace information output by setting "'SHOW_PAGE_TRACE' =>false,"; 3. Enable the sae engine.
- ThinkPHP 2096 2022-12-05 10:07:16
-
- What should I do if thinkphp cannot obtain the session?
- Thinkphp cannot obtain the session because the valid domain name of the cookie is not set. The solution is: 1. Open the "cookie.php" file; 2. Set the domain in the configuration to the real top-level domain name of the current project.
- ThinkPHP 2442 2022-12-05 10:02:27
-
- How to implement retreat in thinkphp5.1
- The method to implement retreat in thinkphp5.1: 1. Add constants in "common/function.php"; 2. Call "<a href="{:U('User/logistics?return='. CURRENT_URL)}" target="blank"></a>"; 3. Just add javascript code to the page for the jump operation.
- ThinkPHP 1328 2022-12-05 09:53:05
-
- What should I do if thinkphp cannot find the specified module?
- Solution to thinkphp unable to find the specified module: 1. Enable debugging mode in config.php; 2. View nginx configuration; 3. Find "#START-ERROR-PAGE#error_page 403 /403.html; error_page 404 /404. html;#error_page 502 /502.html;”; 4. Just comment out the 404 error.
- ThinkPHP 1643 2022-12-05 09:46:45
-
- How to check if a library exists in thinkphp
- How to query whether the thinkphp library exists: 1. Open the corresponding tp file; 2. Through " $isTable=db()->query('SHOW TABLES LIKE '."'".$data['table_name']."'");if($isTable){...}else{...}" Just verify if the table exists.
- ThinkPHP 1653 2022-12-05 09:40:30
-
- How to set up pseudo-static removal directory in thinkphp
- How to set up pseudo-static directory removal in thinkphp: 1. Load the mod_rewrite.so module in the httpd.conf configuration file; 2. Change the None of Allowoverride None in httpd.conf to All; 3. Modify the corresponding project configuration file; 4. Just create an .htaccess file under the root directory of the project.
- ThinkPHP 1575 2022-12-05 09:35:50
-
- How to query multiple data in thinkphp
- How to query multiple data in thinkphp: 1. Use the Table method to query multiple tables, with syntax such as "$Model->table('think_blog blog, think_type type')"; 2. Use the Join method to query, with code such as "$Model ->join('work ON artist.id = work.artist_id')".
- ThinkPHP 2176 2022-12-05 09:26:45
-
- How to query yesterday's data in ThinkPHP5
- How to query yesterday's data in ThinkPHP5: 1. Open ThinkPHP5 related files; 2. Query yesterday's data through the expression "db('table')->whereTime('c_time', 'yesterday')->select();" Can.
- ThinkPHP 1864 2022-12-05 09:20:48
-
- Example to explain how TP framework integrates Huawei Cloud SMS service
- The following thinkphp framework tutorial column will introduce to you how ThinkPHP integrates Huawei Cloud SMS Service. I hope it will be helpful to friends in need!
- ThinkPHP 2253 2022-11-18 21:04:04
-
- Example record: Problems using Topsdk\Topapi in ThinkPhp5.1
- The following thinkphp framework tutorial column will introduce to you the problems of using Topsdk\Topapi in ThinkPhp5.1. I hope it will be helpful to friends in need!
- ThinkPHP 1435 2022-11-13 16:31:06