Tuesday, March 7, 2017
sELECT bY cATEGORY PHP MYSQL
<?php
$con = mysql_connect("localhost","root","");
if (!$con) {
die('Could not connect: ' . mysql_error());
}
mysql_select_db("archive", $con);
$result = mysql_query("select count(1) FROM archive WHERE Category='REPORT'");
$row = mysql_fetch_array($result);
$total = $row[0];
echo "Total Data: " . $total;
mysql_close($con);
?>
http://www.kavoir.com/2010/05/simplest-php-hit-counter-or-download-counter-count-the-number-of-times-of-access-visits-or-downloads.html
Sample Display Count php mysql
<?php
$con = mysql_connect("localhost","root","");
if (!$con) {
die('Could not connect: ' . mysql_error());
}
mysql_select_db("archive", $con);
$result = mysql_query("select count(1) FROM archive");
$row = mysql_fetch_array($result);
$total = $row[0];
echo "Total Data: " . $total;
mysql_close($con);
?>
Subscribe to:
Posts (Atom)
phprunner view custom filed status
if ($value=="Process") $str.='<img src="1.png">'; if ($value=="Receive") $str.='<i...
-
if ($value=="Process") $str.='<img src="1.png">'; if ($value=="Receive") $str.='<i...
-
Sample Php Runner Popup Center Page Sample JS <script type="text/javascript"src="http://code.jquery.com/jquery...
-
<?php if(isset($_POST['submit'])) { $url = $_POST['url']; $check = substr($url,0,11); if($check == "htt...