Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize the Retrieval function of specified conditional Information quantity by php

Shulou Source: shulou.com Published: 2022-06-01 04:53:49 10月26日 Update

This article mainly introduces php how to achieve a specified number of conditional information retrieval function, the article is very detailed, has a certain reference value, interested friends must read it!

Specify the quantity of conditional information retrieval function

/ / specified conditional information quantity retrieval function function rec_exist ($table,$where) {$query= "select count (*) as num from $table". $where;$result=mysql_query ($query) or die (nerror (1)); $rowcount=mysql_fetch_array ($result); $num=$rowcount ["num"]; if ($num==0) {return false;} return $num;}? > these are all the contents of the article "how php implements a specified conditional information quantity retrieval function". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Information quantity condition search content article value interest guy partner more knowledge industry information information channel channel reference help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple macOS Linux MySQL Docker