SlideShare a Scribd company logo
<html>
<head>
       <title>Load Database</title>
</head>
<body>

         <?php
                 $mydatabase = "deltamaxfeb12_5pm";

                 $conn = mysql_connect('localhost','root','') or die('NO CONNECTION');
                 $db = mysql_select_db($mydatabase, $conn);
         ?>

</body>
</html>
<html>
<head>
       <title>By PO</title>
       <link rel="stylesheet" type="text/css" href="../css/orderbulk.css"/>
       <link rel="stylesheet" type="text/css" href="../css/orderdailywhole.css"/>
       <? include('dbloading.php');     ?>
       <? include('session_within.php');        ?>
</head>
<body>

<?php
extract($_GET);

/*

<a href="<?php echo $url; ?>receive=<?php echo $row['order_id']."&&".$urlpage; ?>#bottom">
        <span title='<?echo 'Order:'."t".$username;?>'>
                <img src='../photos/receivenow.png'/>
        </span>
</a>

*/

$qtyinz = 0;
$qtyinzdec = 0;
$qtyinzcandue = 0;
$qtyinzinit = 0;
$qtyinzcanc = 0;

$yearcomplete = date('Y');
$yearfirstdigit = substr($yearcomplete, 0,1);
$year2digit = date('y');

echo "<div style='width: 800px; text-align: left;'>";
       echo "<form method='GET'>";

                  echo "<table style='font-family: arial; font-size: 12px;'>";
                         echo "<tr>";
                                  echo "<td>";
                                          echo "<div class='divsupplierselect'>";
                                                   echo "&nbsp; Purchase Order (P.O): &nbsp;";
echo "<input type='text' class='aorpodti' value='DTI'
disabled='disable'/> - ";
                                              echo "<select name='poselect' class='dateselect'>";
                                              ?>
                                              <option value="" class="aor"><?php if($poselect !=
NULL){ echo $poselect; }?></option>
                                              <?php

                                                      @$sqlduration = "SELECT
DISTINCT(order_information.po) as podist
                                                                                         FROM
order_information
                                                                                         WHERE
order_information.po IS NOT NULL
                                                                                         AND
order_information.po != 'DTI-$poselect'
                                                                                         ORDER BY
order_information.po";
                                                      $queryduration = mysql_query($sqlduration);
                                                      $countduration =
mysql_num_rows($queryduration);

                                                      for($x=0;$x<$countduration;$x++){
                                                              $dataduration =
mysql_fetch_array($queryduration);
                                                              $bypo = $dataduration['podist'];

                                                              $restbypo = substr($bypo, 4);
                                                              echo "<option value='$restbypo'>
$restbypo </option>";
                                                      }
                                               echo "</select>";
                                       echo "</div>";
                               echo "</td>";
                               echo "<td>";
                               echo "&nbsp;&nbsp;&nbsp;";
                               echo "</td>";
                               echo "<td>";
                               echo "<input type='submit' value='Load' name='submiteditpo'
class='reportsubmit'/>";
                               echo "<input type='hidden' value='3' name='profile'/>";
                               echo "</td>";
echo "</tr>";
               echo "</table>";
       echo "</form>";
echo "</div>";
echo "<br/>";

if(isset($submiteditpo) && ($poselect != NULL)){
          echo "<table border='0' cellpadding='0' cellspacing='5' style='width: 800px;'>";

               @$sqlduration = "SELECT DISTINCT(order_information.supplier_id) as company,
supplier_information.*
                                               FROM order_information
                                               LEFT JOIN supplier_information ON
supplier_information.supplier_id = order_information.supplier_id
                                               WHERE order_information.po='DTI-$poselect'";
               $queryduration = mysql_query($sqlduration);
               $countduration = mysql_num_rows($queryduration);

                echo "<tr>";
                       echo "<td colspan='5' style='font-weight: bold; color: #d5a500;'>";
                               echo "DTI-".$poselect;
                       echo "</td>";
                echo "</tr>";

                echo "<tr>";
                       echo "<td colspan='5'>";
                               echo "&nbsp;";
                       echo "</td>";
                echo "</tr>";

                echo "<tr>";
                       echo "<td class='bypogold'>";
                               echo "SUPPLIER: ";
                       echo "</td>";
                       echo "<td class='bypowhite'>";
                               for($x=0;$x<$countduration;$x++){
                                       $dataduration = mysql_fetch_array($queryduration);
                                       $suppbypo = $dataduration['company'];

                                         echo $suppbypo;
                                }
                         echo "</td>";
echo "</tr>";

               @$sqlduration = "SELECT order_information.*, order_duration.*
                                             FROM order_information
                                             LEFT JOIN order_duration ON order_duration.order_id
= order_information.order_id
                                             WHERE order_information.po='DTI-$poselect'";

              $queryduration = mysql_query($sqlduration);
              $countduration = mysql_num_rows($queryduration);

              for($x=0;$x<$countduration;$x++){
                      $dataduration = mysql_fetch_array($queryduration);
                      $dateorder = $dataduration['date_order'];
                      $datetoreceive = $dataduration['date_of_receiving'];
                      $dateorid = $dataduration['order_id'];
              }

              echo "<tr>";
                     echo "<td class='bypogold'>";
                             echo "ORDER DATE: ";
                     echo "</td>";
                     echo "<td class='bypowhite'>";
                             echo $dateorder;
                     echo "</td>";
              echo "</tr>";

              echo "<tr>";
                     echo "<td class='bypogold'>";
                             echo "ARRIVAL DATE: ";
                     echo "</td>";
                     echo "<td class='bypowhite'>";
                             echo $datetoreceive;
                     echo "</td>";
              echo "</tr>";

              echo "<tr>";
                     echo "<td colspan='5'>";
                             echo "&nbsp;";
                     echo "</td>";
              echo "</tr>";
echo "<tr style='font-weight: bold;'>";
       echo "<td class='bypodescgoldblack'>";
                 echo "PRODUCT CODE";
       echo "</td>";
       echo "<td class='bypodescgoldblack'>";
                 echo "DESCRIPTION";
       echo "</td>";
       echo "<td class='bypodescgoldblack'>";
                 echo "QUANTITY";
       echo "</td>";
       echo "<td class='bypodescgoldblack'>";
                 echo "CATEGORY";
       echo "</td>";
echo "</tr>";

@$sqlduration = "SELECT order_information.*
                              FROM order_information
                              WHERE order_information.po='DTI-$poselect'";
$queryduration = mysql_query($sqlduration);
$countduration = mysql_num_rows($queryduration);



for($x=1;$x<=$countduration;$x++){
        $dataduration = mysql_fetch_array($queryduration);
        $ordis = $dataduration['order_id'];
        $categoryis = $dataduration['category_id'];
        $statusis = $dataduration['status'];
        $pcodeis = $dataduration['product_code'];
        $pnameis = $dataduration['product_name'];
        $suppidis = $dataduration['supplier_id'];

       echo "<tr>";
               echo "<td class='bypowhite'>";
                      echo $pcodeis;
               echo "</td>";
               echo "<td class='bypowhite'>";
                      echo $pnameis;
               echo "</td>";

               @$sqlqtyin = "SELECT order_quantity_in.*
                                             FROM order_quantity_in
WHERE
order_quantity_in.order_id='".$ordis."'";

                                $queryqtyin = mysql_query($sqlqtyin);
                                $countqtyin = mysql_num_rows($queryqtyin);



                                for($q=0;$q<$countqtyin;$q++){
                                        $dataqtyin = mysql_fetch_array($queryqtyin);
                                        $qtyin = $dataqtyin['quantity_in'];

                                        echo "<td style='text-align: right; color: white; font-size:
13px;'>";
                                        echo $qtyin;
                                        echo "&nbsp;&nbsp;&nbsp;&nbsp;";
                                        echo "</td>";

                                        $qtyinz = $qtyinz + $qtyin;
                                }

                               @$sqlcategis = "SELECT order_category.*
                                                              FROM order_category
                                                              WHERE
order_category.category_id='".$categoryis."'";

                                $querycategis = mysql_query($sqlcategis);
                                $countcategis= mysql_num_rows($querycategis);

                                for($c=0;$c<$countcategis;$c++){
                                        $datacategis = mysql_fetch_array($querycategis);
                                        $categis = $datacategis['category'];

                                        echo "<td class='bypowhite'>";
                                        echo $categis;
                                        echo "</td>";
                                }

                                        echo "<td style='text-align: right;'>";
                                        if($statusis == "Cancelled"){
                                                 echo "<img src='../photos/cancelled.png'/>";
                                        }
                                        if($statusis == "CancelledDue"){
echo "<img src='../photos/cancelledDue.png'/>";
                                      }
                                      if($statusis == "Declared"){
                                               echo "<img src='../photos/declaredgreen.png'/>";
                                      }
                                      if($statusis == "Initializing"){
                                               echo "<img src='../photos/ongoing.png'/>";
                                      }
                                      echo "</td>";
                      echo "</tr>";
               }

                      @$sqldurationcan = "SELECT order_information.*
                                                           FROM order_information
                                                           WHERE order_information.po='DTI-
$poselect'
                                                             AND
order_information.status='Initializing'";
                       $querydurationcan = mysql_query($sqldurationcan);
                       $countdurationcan = mysql_num_rows($querydurationcan);

                      for($xcan=1;$xcan<=$countdurationcan;$xcan++){
                              $dataduration = mysql_fetch_array($querydurationcan);
                      }

                      @$sqlqtyindec = "SELECT order_quantity_in.*, order_information.*
                                               FROM order_quantity_in
                                               LEFT JOIN order_information ON
order_information.order_id = order_quantity_in.order_id
                                                WHERE order_information.po='DTI-$poselect'
                                               AND order_information.status='declared'";

                      $queryqtyindec = mysql_query($sqlqtyindec);
                      $countqtyindec = mysql_num_rows($queryqtyindec);

                      for($qdec=0;$qdec<$countqtyindec;$qdec++){
                             $dataqtyindec = mysql_fetch_array($queryqtyindec);
                             $qtyindec = $dataqtyindec['quantity_in'];

                              $qtyinzdec = $qtyinzdec + $qtyindec + 0;
                      }
@$sqlqtyincandue = "SELECT order_quantity_in.*, order_information.*
                                               FROM order_quantity_in
                                               LEFT JOIN order_information ON
order_information.order_id = order_quantity_in.order_id
                                                WHERE order_information.po='DTI-$poselect'
                                               AND order_information.status='cancelleddue'";

                       $queryqtyincandue = mysql_query($sqlqtyincandue);
                       $countqtyincandue = mysql_num_rows($queryqtyincandue);

                       for($qcandue=0;$qcandue<$countqtyincandue;$qcandue++){
                               $dataqtyincandue = mysql_fetch_array($queryqtyincandue);
                               $qtyincandue = $dataqtyincandue['quantity_in'];

                              $qtyinzcandue = $qtyinzcandue + $qtyincandue + 0;
                       }

                      @$sqlqtyininit = "SELECT order_quantity_in.*, order_information.*
                                               FROM order_quantity_in
                                               LEFT JOIN order_information ON
order_information.order_id = order_quantity_in.order_id
                                                WHERE order_information.po='DTI-$poselect'
                                               AND order_information.status='initializing'";

                       $queryqtyininit = mysql_query($sqlqtyininit);
                       $countqtyininit = mysql_num_rows($queryqtyininit);

                       for($qinit=0;$qinit<$countqtyininit;$qinit++){
                               $dataqtyininit = mysql_fetch_array($queryqtyininit);
                               $qtyininit = $dataqtyininit['quantity_in'];

                              $qtyinzinit = $qtyinzinit + $qtyininit + 0;
                       }

                      @$sqlqtyincanc = "SELECT order_quantity_in.*, order_information.*
                                               FROM order_quantity_in
                                               LEFT JOIN order_information ON
order_information.order_id = order_quantity_in.order_id
                                                WHERE order_information.po='DTI-$poselect'
                                               AND order_information.status='cancelled'";

                       $queryqtyincanc = mysql_query($sqlqtyincanc);
$countqtyincanc = mysql_num_rows($queryqtyincanc);

for($qcanc=0;$qcanc<$countqtyincanc;$qcanc++){
        $dataqtyincanc = mysql_fetch_array($queryqtyincanc);
        $qtyincanc = $dataqtyincanc['quantity_in'];

        $qtyinzcanc = $qtyinzcanc + $qtyincanc + 0;
}

echo "<tr>";
        echo "<td colspan='5'>";
               echo "&nbsp;";
        echo "</td>";
echo "</tr>";

echo "<tr>";
        echo "<td colspan='4' class='bypofinaldesc'>";
               echo "TOTAL ORDER:";
        echo "</td>";
        echo "<td style='text-align: right; font-weight: bold; color: white;'>";
               echo $countduration;
               echo "&nbsp;&nbsp;";
        echo "</td>";
echo "</tr>";

echo "<tr>";
        echo "<td colspan='5'>";
               echo "&nbsp;";
        echo "</td>";
echo "</tr>";

echo "<tr>";
        echo "<td colspan='4' class='bypofinaldesc'>";
               echo "INITIALIZING:";
        echo "</td>";
        echo "<td style='text-align: right; color: white;'>";
               echo $qtyinzinit;
               echo "&nbsp;&nbsp;";
        echo "</td>";
echo "</tr>";

echo "<tr>";
echo "<td colspan='4' class='bypofinaldesc'>";
                                  echo "DECLARED:";
                           echo "</td>";
                           echo "<td style='text-align: right; color: white;'>";
                                  echo $qtyinzdec;
                                  echo "&nbsp;&nbsp;";
                           echo "</td>";
                    echo "</tr>";

                    echo "<tr>";
                            echo "<td colspan='4' class='bypofinaldesc'>";
                                   echo "CANCELLED:";
                            echo "</td>";
                            echo "<td style='text-align: right; color: white;'>";
                                   echo $qtyinzcanc;
                                   echo "&nbsp;&nbsp;";
                            echo "</td>";
                    echo "</tr>";

                    echo "<tr>";
                            echo "<td colspan='4' class='bypofinaldesc'>";
                                   echo "CANCELLED DUE:";
                            echo "</td>";
                            echo "<td style='text-align: right; color: white;'>";
                                   echo $qtyinzcandue;
                                   echo "&nbsp;&nbsp;";
                            echo "</td>";
                    echo "</tr>";

                    echo "<tr>";
                            echo "<td colspan='4' class='bypofinaldesc'>";
                                   echo "TOTAL QUANTITY:";
                            echo "</td>";
                            echo "<td style='text-align: right; font-weight: bold; color: white;'>";
                                   echo $qtyinz;
                                   echo "&nbsp;&nbsp;";
                            echo "</td>";
                    echo "</tr>";

     echo "</table>";
}
?>
Ad

More Related Content

What's hot (20)

Gta v savegame
Gta v savegameGta v savegame
Gta v savegame
hozayfa999
 
Smelling your code
Smelling your codeSmelling your code
Smelling your code
Raju Mazumder
 
Object Calisthenics Applied to PHP
Object Calisthenics Applied to PHPObject Calisthenics Applied to PHP
Object Calisthenics Applied to PHP
Guilherme Blanco
 
Models and Service Layers, Hemoglobin and Hobgoblins
Models and Service Layers, Hemoglobin and HobgoblinsModels and Service Layers, Hemoglobin and Hobgoblins
Models and Service Layers, Hemoglobin and Hobgoblins
Ross Tuck
 
Drupal7 dbtng
Drupal7  dbtngDrupal7  dbtng
Drupal7 dbtng
Nicolas Leroy
 
PHP for Adults: Clean Code and Object Calisthenics
PHP for Adults: Clean Code and Object CalisthenicsPHP for Adults: Clean Code and Object Calisthenics
PHP for Adults: Clean Code and Object Calisthenics
Guilherme Blanco
 
Drupal 8 database api
Drupal 8 database apiDrupal 8 database api
Drupal 8 database api
Viswanath Polaki
 
PHP 5.4
PHP 5.4PHP 5.4
PHP 5.4
Federico Damián Lozada Mosto
 
Object Calisthenics Adapted for PHP
Object Calisthenics Adapted for PHPObject Calisthenics Adapted for PHP
Object Calisthenics Adapted for PHP
Chad Gray
 
Pemrograman Web 8 - MySQL
Pemrograman Web 8 - MySQLPemrograman Web 8 - MySQL
Pemrograman Web 8 - MySQL
Nur Fadli Utomo
 
Agile database access with CakePHP 3
Agile database access with CakePHP 3Agile database access with CakePHP 3
Agile database access with CakePHP 3
José Lorenzo Rodríguez Urdaneta
 
Dependency Injection with PHP and PHP 5.3
Dependency Injection with PHP and PHP 5.3Dependency Injection with PHP and PHP 5.3
Dependency Injection with PHP and PHP 5.3
Fabien Potencier
 
dcs plus Catalogue 2015
dcs plus Catalogue 2015dcs plus Catalogue 2015
dcs plus Catalogue 2015
dcs plus
 
Decouple Your Code For Reusability (International PHP Conference / IPC 2008)
Decouple Your Code For Reusability (International PHP Conference / IPC 2008)Decouple Your Code For Reusability (International PHP Conference / IPC 2008)
Decouple Your Code For Reusability (International PHP Conference / IPC 2008)
Fabien Potencier
 
What Is Security
What Is SecurityWhat Is Security
What Is Security
Jason Ragsdale
 
PHP tips and tricks
PHP tips and tricks PHP tips and tricks
PHP tips and tricks
Damien Seguy
 
Separation of concerns - DPC12
Separation of concerns - DPC12Separation of concerns - DPC12
Separation of concerns - DPC12
Stephan Hochdörfer
 
Quebec pdo
Quebec pdoQuebec pdo
Quebec pdo
Valentine Dianov
 
Topological indices (t is) of the graphs to seek qsar models of proteins com...
Topological indices (t is) of the graphs  to seek qsar models of proteins com...Topological indices (t is) of the graphs  to seek qsar models of proteins com...
Topological indices (t is) of the graphs to seek qsar models of proteins com...
Jitendra Kumar Gupta
 
Tulsa techfest2010 security
Tulsa techfest2010   securityTulsa techfest2010   security
Tulsa techfest2010 security
Jason Ragsdale
 
Gta v savegame
Gta v savegameGta v savegame
Gta v savegame
hozayfa999
 
Object Calisthenics Applied to PHP
Object Calisthenics Applied to PHPObject Calisthenics Applied to PHP
Object Calisthenics Applied to PHP
Guilherme Blanco
 
Models and Service Layers, Hemoglobin and Hobgoblins
Models and Service Layers, Hemoglobin and HobgoblinsModels and Service Layers, Hemoglobin and Hobgoblins
Models and Service Layers, Hemoglobin and Hobgoblins
Ross Tuck
 
PHP for Adults: Clean Code and Object Calisthenics
PHP for Adults: Clean Code and Object CalisthenicsPHP for Adults: Clean Code and Object Calisthenics
PHP for Adults: Clean Code and Object Calisthenics
Guilherme Blanco
 
Object Calisthenics Adapted for PHP
Object Calisthenics Adapted for PHPObject Calisthenics Adapted for PHP
Object Calisthenics Adapted for PHP
Chad Gray
 
Pemrograman Web 8 - MySQL
Pemrograman Web 8 - MySQLPemrograman Web 8 - MySQL
Pemrograman Web 8 - MySQL
Nur Fadli Utomo
 
Dependency Injection with PHP and PHP 5.3
Dependency Injection with PHP and PHP 5.3Dependency Injection with PHP and PHP 5.3
Dependency Injection with PHP and PHP 5.3
Fabien Potencier
 
dcs plus Catalogue 2015
dcs plus Catalogue 2015dcs plus Catalogue 2015
dcs plus Catalogue 2015
dcs plus
 
Decouple Your Code For Reusability (International PHP Conference / IPC 2008)
Decouple Your Code For Reusability (International PHP Conference / IPC 2008)Decouple Your Code For Reusability (International PHP Conference / IPC 2008)
Decouple Your Code For Reusability (International PHP Conference / IPC 2008)
Fabien Potencier
 
PHP tips and tricks
PHP tips and tricks PHP tips and tricks
PHP tips and tricks
Damien Seguy
 
Topological indices (t is) of the graphs to seek qsar models of proteins com...
Topological indices (t is) of the graphs  to seek qsar models of proteins com...Topological indices (t is) of the graphs  to seek qsar models of proteins com...
Topological indices (t is) of the graphs to seek qsar models of proteins com...
Jitendra Kumar Gupta
 
Tulsa techfest2010 security
Tulsa techfest2010   securityTulsa techfest2010   security
Tulsa techfest2010 security
Jason Ragsdale
 

Viewers also liked (9)

Simpson
SimpsonSimpson
Simpson
yuyin05homs
 
Diapositiva proyecto
Diapositiva proyectoDiapositiva proyecto
Diapositiva proyecto
Sharick Garcia Leon
 
Presentación de Herramientas Virtuales
Presentación de Herramientas VirtualesPresentación de Herramientas Virtuales
Presentación de Herramientas Virtuales
Onizukar
 
Ciencias Del Deporte
Ciencias Del DeporteCiencias Del Deporte
Ciencias Del Deporte
Fabio Mendez Carranza
 
SOBERBIO DALI
SOBERBIO DALISOBERBIO DALI
SOBERBIO DALI
Jorge Llosa
 
Instituto de educación media superior del d (2)
Instituto de educación media superior del d (2)Instituto de educación media superior del d (2)
Instituto de educación media superior del d (2)
guerito15
 
Presentación1. la corrosion Evelio Vasquez
Presentación1. la corrosion Evelio VasquezPresentación1. la corrosion Evelio Vasquez
Presentación1. la corrosion Evelio Vasquez
Evelio Vasquez
 
Sgws 2013 auction catalog 4
Sgws 2013 auction catalog 4Sgws 2013 auction catalog 4
Sgws 2013 auction catalog 4
Amy Hecky
 
Rádio da escola
Rádio da escolaRádio da escola
Rádio da escola
Simone Carcavilla
 
Presentación de Herramientas Virtuales
Presentación de Herramientas VirtualesPresentación de Herramientas Virtuales
Presentación de Herramientas Virtuales
Onizukar
 
Instituto de educación media superior del d (2)
Instituto de educación media superior del d (2)Instituto de educación media superior del d (2)
Instituto de educación media superior del d (2)
guerito15
 
Presentación1. la corrosion Evelio Vasquez
Presentación1. la corrosion Evelio VasquezPresentación1. la corrosion Evelio Vasquez
Presentación1. la corrosion Evelio Vasquez
Evelio Vasquez
 
Sgws 2013 auction catalog 4
Sgws 2013 auction catalog 4Sgws 2013 auction catalog 4
Sgws 2013 auction catalog 4
Amy Hecky
 
Ad

Similar to php plus mysql (20)

C A S Sample Php
C A S Sample PhpC A S Sample Php
C A S Sample Php
JH Lee
 
Php (1)
Php (1)Php (1)
Php (1)
pinalsadiwala
 
Php update and delet operation
Php update and delet operationPhp update and delet operation
Php update and delet operation
syeda zoya mehdi
 
Propel sfugmd
Propel sfugmdPropel sfugmd
Propel sfugmd
iKlaus
 
Ex[1].3 php db connectivity
Ex[1].3 php db connectivityEx[1].3 php db connectivity
Ex[1].3 php db connectivity
Mouli Chandira
 
The History of PHPersistence
The History of PHPersistenceThe History of PHPersistence
The History of PHPersistence
Hugo Hamon
 
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
Masahiro Nagano
 
Coding website
Coding websiteCoding website
Coding website
PutuMahendra Wijaya
 
Zero to SOLID
Zero to SOLIDZero to SOLID
Zero to SOLID
Vic Metcalfe
 
8時間耐久CakePHP2 勉強会
8時間耐久CakePHP2 勉強会8時間耐久CakePHP2 勉強会
8時間耐久CakePHP2 勉強会
Yusuke Ando
 
Database api
Database apiDatabase api
Database api
InternetDevels
 
Php 102: Out with the Bad, In with the Good
Php 102: Out with the Bad, In with the GoodPhp 102: Out with the Bad, In with the Good
Php 102: Out with the Bad, In with the Good
Jeremy Kendall
 
My shell
My shellMy shell
My shell
Ahmed Salah
 
Pemrograman Web 9 - Input Form DB dan Session
Pemrograman Web 9 - Input Form DB dan SessionPemrograman Web 9 - Input Form DB dan Session
Pemrograman Web 9 - Input Form DB dan Session
Nur Fadli Utomo
 
Karan - form search
Karan - form searchKaran - form search
Karan - form search
karanchanana1
 
Karan chanan
Karan chananKaran chanan
Karan chanan
karan chanana
 
Presentation1
Presentation1Presentation1
Presentation1
Rahadyan Gusti
 
Daily notes
Daily notesDaily notes
Daily notes
meghendra168
 
21. CodeIgniter search
21. CodeIgniter search21. CodeIgniter search
21. CodeIgniter search
Razvan Raducanu, PhD
 
Basics of Working with PHP and MySQL.pptx
Basics of Working with PHP and MySQL.pptxBasics of Working with PHP and MySQL.pptx
Basics of Working with PHP and MySQL.pptx
jensas21
 
C A S Sample Php
C A S Sample PhpC A S Sample Php
C A S Sample Php
JH Lee
 
Php update and delet operation
Php update and delet operationPhp update and delet operation
Php update and delet operation
syeda zoya mehdi
 
Propel sfugmd
Propel sfugmdPropel sfugmd
Propel sfugmd
iKlaus
 
Ex[1].3 php db connectivity
Ex[1].3 php db connectivityEx[1].3 php db connectivity
Ex[1].3 php db connectivity
Mouli Chandira
 
The History of PHPersistence
The History of PHPersistenceThe History of PHPersistence
The History of PHPersistence
Hugo Hamon
 
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
Masahiro Nagano
 
8時間耐久CakePHP2 勉強会
8時間耐久CakePHP2 勉強会8時間耐久CakePHP2 勉強会
8時間耐久CakePHP2 勉強会
Yusuke Ando
 
Php 102: Out with the Bad, In with the Good
Php 102: Out with the Bad, In with the GoodPhp 102: Out with the Bad, In with the Good
Php 102: Out with the Bad, In with the Good
Jeremy Kendall
 
Pemrograman Web 9 - Input Form DB dan Session
Pemrograman Web 9 - Input Form DB dan SessionPemrograman Web 9 - Input Form DB dan Session
Pemrograman Web 9 - Input Form DB dan Session
Nur Fadli Utomo
 
Basics of Working with PHP and MySQL.pptx
Basics of Working with PHP and MySQL.pptxBasics of Working with PHP and MySQL.pptx
Basics of Working with PHP and MySQL.pptx
jensas21
 
Ad

Recently uploaded (20)

Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
Unlocking the Power of IVR: A Comprehensive Guide
Unlocking the Power of IVR: A Comprehensive GuideUnlocking the Power of IVR: A Comprehensive Guide
Unlocking the Power of IVR: A Comprehensive Guide
vikasascentbpo
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Social Media App Development Company-EmizenTech
Social Media App Development Company-EmizenTechSocial Media App Development Company-EmizenTech
Social Media App Development Company-EmizenTech
Steve Jonas
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Web and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in RajpuraWeb and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in Rajpura
Erginous Technology
 
Top 10 IT Help Desk Outsourcing Services
Top 10 IT Help Desk Outsourcing ServicesTop 10 IT Help Desk Outsourcing Services
Top 10 IT Help Desk Outsourcing Services
Infrassist Technologies Pvt. Ltd.
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
TrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token ListingTrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token Listing
Trs Labs
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Vaibhav Gupta BAML: AI work flows without Hallucinations
Vaibhav Gupta BAML: AI work flows without HallucinationsVaibhav Gupta BAML: AI work flows without Hallucinations
Vaibhav Gupta BAML: AI work flows without Hallucinations
john409870
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdfAre Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Telecoms Supermarket
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
Unlocking the Power of IVR: A Comprehensive Guide
Unlocking the Power of IVR: A Comprehensive GuideUnlocking the Power of IVR: A Comprehensive Guide
Unlocking the Power of IVR: A Comprehensive Guide
vikasascentbpo
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Social Media App Development Company-EmizenTech
Social Media App Development Company-EmizenTechSocial Media App Development Company-EmizenTech
Social Media App Development Company-EmizenTech
Steve Jonas
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Web and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in RajpuraWeb and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in Rajpura
Erginous Technology
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
TrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token ListingTrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token Listing
Trs Labs
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Vaibhav Gupta BAML: AI work flows without Hallucinations
Vaibhav Gupta BAML: AI work flows without HallucinationsVaibhav Gupta BAML: AI work flows without Hallucinations
Vaibhav Gupta BAML: AI work flows without Hallucinations
john409870
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdfAre Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Are Cloud PBX Providers in India Reliable for Small Businesses (1).pdf
Telecoms Supermarket
 

php plus mysql

  • 1. <html> <head> <title>Load Database</title> </head> <body> <?php $mydatabase = "deltamaxfeb12_5pm"; $conn = mysql_connect('localhost','root','') or die('NO CONNECTION'); $db = mysql_select_db($mydatabase, $conn); ?> </body> </html>
  • 2. <html> <head> <title>By PO</title> <link rel="stylesheet" type="text/css" href="../css/orderbulk.css"/> <link rel="stylesheet" type="text/css" href="../css/orderdailywhole.css"/> <? include('dbloading.php'); ?> <? include('session_within.php'); ?> </head> <body> <?php extract($_GET); /* <a href="<?php echo $url; ?>receive=<?php echo $row['order_id']."&&".$urlpage; ?>#bottom"> <span title='<?echo 'Order:'."t".$username;?>'> <img src='../photos/receivenow.png'/> </span> </a> */ $qtyinz = 0; $qtyinzdec = 0; $qtyinzcandue = 0; $qtyinzinit = 0; $qtyinzcanc = 0; $yearcomplete = date('Y'); $yearfirstdigit = substr($yearcomplete, 0,1); $year2digit = date('y'); echo "<div style='width: 800px; text-align: left;'>"; echo "<form method='GET'>"; echo "<table style='font-family: arial; font-size: 12px;'>"; echo "<tr>"; echo "<td>"; echo "<div class='divsupplierselect'>"; echo "&nbsp; Purchase Order (P.O): &nbsp;";
  • 3. echo "<input type='text' class='aorpodti' value='DTI' disabled='disable'/> - "; echo "<select name='poselect' class='dateselect'>"; ?> <option value="" class="aor"><?php if($poselect != NULL){ echo $poselect; }?></option> <?php @$sqlduration = "SELECT DISTINCT(order_information.po) as podist FROM order_information WHERE order_information.po IS NOT NULL AND order_information.po != 'DTI-$poselect' ORDER BY order_information.po"; $queryduration = mysql_query($sqlduration); $countduration = mysql_num_rows($queryduration); for($x=0;$x<$countduration;$x++){ $dataduration = mysql_fetch_array($queryduration); $bypo = $dataduration['podist']; $restbypo = substr($bypo, 4); echo "<option value='$restbypo'> $restbypo </option>"; } echo "</select>"; echo "</div>"; echo "</td>"; echo "<td>"; echo "&nbsp;&nbsp;&nbsp;"; echo "</td>"; echo "<td>"; echo "<input type='submit' value='Load' name='submiteditpo' class='reportsubmit'/>"; echo "<input type='hidden' value='3' name='profile'/>"; echo "</td>";
  • 4. echo "</tr>"; echo "</table>"; echo "</form>"; echo "</div>"; echo "<br/>"; if(isset($submiteditpo) && ($poselect != NULL)){ echo "<table border='0' cellpadding='0' cellspacing='5' style='width: 800px;'>"; @$sqlduration = "SELECT DISTINCT(order_information.supplier_id) as company, supplier_information.* FROM order_information LEFT JOIN supplier_information ON supplier_information.supplier_id = order_information.supplier_id WHERE order_information.po='DTI-$poselect'"; $queryduration = mysql_query($sqlduration); $countduration = mysql_num_rows($queryduration); echo "<tr>"; echo "<td colspan='5' style='font-weight: bold; color: #d5a500;'>"; echo "DTI-".$poselect; echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td colspan='5'>"; echo "&nbsp;"; echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td class='bypogold'>"; echo "SUPPLIER: "; echo "</td>"; echo "<td class='bypowhite'>"; for($x=0;$x<$countduration;$x++){ $dataduration = mysql_fetch_array($queryduration); $suppbypo = $dataduration['company']; echo $suppbypo; } echo "</td>";
  • 5. echo "</tr>"; @$sqlduration = "SELECT order_information.*, order_duration.* FROM order_information LEFT JOIN order_duration ON order_duration.order_id = order_information.order_id WHERE order_information.po='DTI-$poselect'"; $queryduration = mysql_query($sqlduration); $countduration = mysql_num_rows($queryduration); for($x=0;$x<$countduration;$x++){ $dataduration = mysql_fetch_array($queryduration); $dateorder = $dataduration['date_order']; $datetoreceive = $dataduration['date_of_receiving']; $dateorid = $dataduration['order_id']; } echo "<tr>"; echo "<td class='bypogold'>"; echo "ORDER DATE: "; echo "</td>"; echo "<td class='bypowhite'>"; echo $dateorder; echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td class='bypogold'>"; echo "ARRIVAL DATE: "; echo "</td>"; echo "<td class='bypowhite'>"; echo $datetoreceive; echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td colspan='5'>"; echo "&nbsp;"; echo "</td>"; echo "</tr>";
  • 6. echo "<tr style='font-weight: bold;'>"; echo "<td class='bypodescgoldblack'>"; echo "PRODUCT CODE"; echo "</td>"; echo "<td class='bypodescgoldblack'>"; echo "DESCRIPTION"; echo "</td>"; echo "<td class='bypodescgoldblack'>"; echo "QUANTITY"; echo "</td>"; echo "<td class='bypodescgoldblack'>"; echo "CATEGORY"; echo "</td>"; echo "</tr>"; @$sqlduration = "SELECT order_information.* FROM order_information WHERE order_information.po='DTI-$poselect'"; $queryduration = mysql_query($sqlduration); $countduration = mysql_num_rows($queryduration); for($x=1;$x<=$countduration;$x++){ $dataduration = mysql_fetch_array($queryduration); $ordis = $dataduration['order_id']; $categoryis = $dataduration['category_id']; $statusis = $dataduration['status']; $pcodeis = $dataduration['product_code']; $pnameis = $dataduration['product_name']; $suppidis = $dataduration['supplier_id']; echo "<tr>"; echo "<td class='bypowhite'>"; echo $pcodeis; echo "</td>"; echo "<td class='bypowhite'>"; echo $pnameis; echo "</td>"; @$sqlqtyin = "SELECT order_quantity_in.* FROM order_quantity_in
  • 7. WHERE order_quantity_in.order_id='".$ordis."'"; $queryqtyin = mysql_query($sqlqtyin); $countqtyin = mysql_num_rows($queryqtyin); for($q=0;$q<$countqtyin;$q++){ $dataqtyin = mysql_fetch_array($queryqtyin); $qtyin = $dataqtyin['quantity_in']; echo "<td style='text-align: right; color: white; font-size: 13px;'>"; echo $qtyin; echo "&nbsp;&nbsp;&nbsp;&nbsp;"; echo "</td>"; $qtyinz = $qtyinz + $qtyin; } @$sqlcategis = "SELECT order_category.* FROM order_category WHERE order_category.category_id='".$categoryis."'"; $querycategis = mysql_query($sqlcategis); $countcategis= mysql_num_rows($querycategis); for($c=0;$c<$countcategis;$c++){ $datacategis = mysql_fetch_array($querycategis); $categis = $datacategis['category']; echo "<td class='bypowhite'>"; echo $categis; echo "</td>"; } echo "<td style='text-align: right;'>"; if($statusis == "Cancelled"){ echo "<img src='../photos/cancelled.png'/>"; } if($statusis == "CancelledDue"){
  • 8. echo "<img src='../photos/cancelledDue.png'/>"; } if($statusis == "Declared"){ echo "<img src='../photos/declaredgreen.png'/>"; } if($statusis == "Initializing"){ echo "<img src='../photos/ongoing.png'/>"; } echo "</td>"; echo "</tr>"; } @$sqldurationcan = "SELECT order_information.* FROM order_information WHERE order_information.po='DTI- $poselect' AND order_information.status='Initializing'"; $querydurationcan = mysql_query($sqldurationcan); $countdurationcan = mysql_num_rows($querydurationcan); for($xcan=1;$xcan<=$countdurationcan;$xcan++){ $dataduration = mysql_fetch_array($querydurationcan); } @$sqlqtyindec = "SELECT order_quantity_in.*, order_information.* FROM order_quantity_in LEFT JOIN order_information ON order_information.order_id = order_quantity_in.order_id WHERE order_information.po='DTI-$poselect' AND order_information.status='declared'"; $queryqtyindec = mysql_query($sqlqtyindec); $countqtyindec = mysql_num_rows($queryqtyindec); for($qdec=0;$qdec<$countqtyindec;$qdec++){ $dataqtyindec = mysql_fetch_array($queryqtyindec); $qtyindec = $dataqtyindec['quantity_in']; $qtyinzdec = $qtyinzdec + $qtyindec + 0; }
  • 9. @$sqlqtyincandue = "SELECT order_quantity_in.*, order_information.* FROM order_quantity_in LEFT JOIN order_information ON order_information.order_id = order_quantity_in.order_id WHERE order_information.po='DTI-$poselect' AND order_information.status='cancelleddue'"; $queryqtyincandue = mysql_query($sqlqtyincandue); $countqtyincandue = mysql_num_rows($queryqtyincandue); for($qcandue=0;$qcandue<$countqtyincandue;$qcandue++){ $dataqtyincandue = mysql_fetch_array($queryqtyincandue); $qtyincandue = $dataqtyincandue['quantity_in']; $qtyinzcandue = $qtyinzcandue + $qtyincandue + 0; } @$sqlqtyininit = "SELECT order_quantity_in.*, order_information.* FROM order_quantity_in LEFT JOIN order_information ON order_information.order_id = order_quantity_in.order_id WHERE order_information.po='DTI-$poselect' AND order_information.status='initializing'"; $queryqtyininit = mysql_query($sqlqtyininit); $countqtyininit = mysql_num_rows($queryqtyininit); for($qinit=0;$qinit<$countqtyininit;$qinit++){ $dataqtyininit = mysql_fetch_array($queryqtyininit); $qtyininit = $dataqtyininit['quantity_in']; $qtyinzinit = $qtyinzinit + $qtyininit + 0; } @$sqlqtyincanc = "SELECT order_quantity_in.*, order_information.* FROM order_quantity_in LEFT JOIN order_information ON order_information.order_id = order_quantity_in.order_id WHERE order_information.po='DTI-$poselect' AND order_information.status='cancelled'"; $queryqtyincanc = mysql_query($sqlqtyincanc);
  • 10. $countqtyincanc = mysql_num_rows($queryqtyincanc); for($qcanc=0;$qcanc<$countqtyincanc;$qcanc++){ $dataqtyincanc = mysql_fetch_array($queryqtyincanc); $qtyincanc = $dataqtyincanc['quantity_in']; $qtyinzcanc = $qtyinzcanc + $qtyincanc + 0; } echo "<tr>"; echo "<td colspan='5'>"; echo "&nbsp;"; echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td colspan='4' class='bypofinaldesc'>"; echo "TOTAL ORDER:"; echo "</td>"; echo "<td style='text-align: right; font-weight: bold; color: white;'>"; echo $countduration; echo "&nbsp;&nbsp;"; echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td colspan='5'>"; echo "&nbsp;"; echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td colspan='4' class='bypofinaldesc'>"; echo "INITIALIZING:"; echo "</td>"; echo "<td style='text-align: right; color: white;'>"; echo $qtyinzinit; echo "&nbsp;&nbsp;"; echo "</td>"; echo "</tr>"; echo "<tr>";
  • 11. echo "<td colspan='4' class='bypofinaldesc'>"; echo "DECLARED:"; echo "</td>"; echo "<td style='text-align: right; color: white;'>"; echo $qtyinzdec; echo "&nbsp;&nbsp;"; echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td colspan='4' class='bypofinaldesc'>"; echo "CANCELLED:"; echo "</td>"; echo "<td style='text-align: right; color: white;'>"; echo $qtyinzcanc; echo "&nbsp;&nbsp;"; echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td colspan='4' class='bypofinaldesc'>"; echo "CANCELLED DUE:"; echo "</td>"; echo "<td style='text-align: right; color: white;'>"; echo $qtyinzcandue; echo "&nbsp;&nbsp;"; echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td colspan='4' class='bypofinaldesc'>"; echo "TOTAL QUANTITY:"; echo "</td>"; echo "<td style='text-align: right; font-weight: bold; color: white;'>"; echo $qtyinz; echo "&nbsp;&nbsp;"; echo "</td>"; echo "</tr>"; echo "</table>"; } ?>