Home > Backend Development > PHP Tutorial > Temporary internet files Comparison of writing methods that affect the execution speed of PHP+MYSQL Page 1/7

Temporary internet files Comparison of writing methods that affect the execution speed of PHP+MYSQL Page 1/7

WBOY
Release: 2016-07-29 08:36:00
Original
940 people have browsed it

[code]include_once("../db.php");
if($_GET[x2]==0 and $_GET[x1]==0)
{
$t=" s1 ='' ";
}else
{
if($_GET[x2]!=0)
{
$t=" x2='$_GET[x2]' ";
}else
if($_GET[x1 ]!=0)
{
$t=" x1='$_GET[x1]' and x2=0 ";
}
}
$query = "select count(*) from ask_member where $t ";
$ result2 = mysql_db_query($DataBase, $query);
$r3 = mysql_fetch_array($result2);
$amount=$r3[0];
$page_size=5;
if($amount%$page_size==0 and $ amount>0)
{
$pagecount=($amount/$page_size);
}else
{
$pagecount=intval($amount/$page_size)+1;
}
if($_GET

Current page 1/7 1234567Next page

The above introduces the comparison of writing methods of temporary internet files that affect the execution speed of PHP+MYSQL on page 1/7, including the content of temporary internet files. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template