How to realize the Retrieval function of specified conditional Information quantity by php
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!