PHP COUNT OF DIFFERENT VALUES IN VARIOUS COLUMN

I have a table which has column and values as -
a1a a1b a1c a1d
8 10 8 7
10 5 7 9
8 10 9 8
8 10 7 9
7 6 7 9
10 9 8 6

  1. I want to find how many times each number occurs in a1a , a1b, a1c, a1d (array in select query)
  2. second how mant times each values occurs over all in array.

Hi,
I am trying to create a smiley box, I tried using a popover to show all the smilies instead of having them right on page.

This is the tag I am currently using to show smilies :
[php][/php]

insertsmiley is the js I am using to insert the smiley to the textbox.

Now I need this to be within a popover, I tried using this :

[php]<span class=“btn btn-inverse btn-sm popover-notitle” data-rel=“popover” data-placement=“bottom” data-content="">Smilies[/php]

And this is the JS to show the popover, I have added the html attribute in here.

$('[data-rel=popover]').popover({html:true});

But this doesn’t work, specifically the insertsmiley function isn’t working… It load the popover just as required but the function isn’t working.

I need help getting this to work correctly, I hope my question is conveyed correctly.

Thanks !

<?php // create short variable names $name = $_POST['boxy'] echo "Thank you," $name: $widgetqty = $_POST['widgetqty']; $find = $_POST['find']; ?> Widget Order Results

Order Results

<?php
echo "<p>Order processed at ".date('H:i, jS F Y')."</p>";

echo "<p>Your order is as follows: </p>";

$totalqty = 0;
$totalqty = $widgetqty;
echo "Items ordered: ".$totalqty."<br />";


if ($totalqty == 0) {

  echo "You did not order anything on the previous page!<br />";

} else {

  if ($widgetqty > 0) {
	echo $widgetqty." widgets<br />";
  
}


$totalamount = 0.00;

define('WIDGETPRICE',10);


$totalamount = $widgetqty * WIDGETPRICE;

echo "Subtotal: $".number_format($totalamount,2)."<br />";

$taxrate = 0.10;  // local sales tax is 10%
$totalamount = $totalamount * (1 + $taxrate);
echo "Total": $".number_format($totalamount,2)."<br />";

?>

<?php // create short variable names $name = $_POST['boxy'] echo "Thank you," $name: $widgetqty = $_POST['widgetqty']; $find = $_POST['find']; ?> Widget Order Results

Order Results

<?php
echo "<p>Order processed at ".date('H:i, jS F Y')."</p>";

echo "<p>Your order is as follows: </p>";

$totalqty = 0;
$totalqty = $widgetqty;
echo "Items ordered: ".$totalqty."<br />";


if ($totalqty == 0) {

  echo "You did not order anything on the previous page!<br />";

} else {

  if ($widgetqty > 0) {
	echo $widgetqty." widgets<br />";
  
}


$totalamount = 0.00;

define('WIDGETPRICE',10);


$totalamount = $widgetqty * WIDGETPRICE;

echo "Subtotal: $".number_format($totalamount,2)."<br />";

$taxrate = 0.10;  // local sales tax is 10%
$totalamount = $totalamount * (1 + $taxrate);
echo "Total": $".number_format($totalamount,2)."<br />";

?>

Fita is a best SharePoint Training in Chennai. SharePoint is nothing new for us as it is already Implements in the most of Large Organization in Chennai. Most of the Telco Providers Share point training are already using for their Document Management & Enterprise web portal. Banking sectors also started with SharePoint Automation from the Last couple of years. We provide the best discount price for SharePoint Training.

Fita is a best SharePoint Training in Chennai. SharePoint is nothing new for us as it is already Implements in the most of Large Organization in Chennai. Most of the Telco Providers Share point training are already using for their Document Management & Enterprise web portal. Banking sectors also started with SharePoint Automation from the Last couple of years. We provide the best discount price for SharePoint Training.

Sponsor our Newsletter | Privacy Policy | Terms of Service