瀏覽代碼

Delete 'public_html/scripts/amount.php'

david.ortiz11 4 年之前
父節點
當前提交
8d03572927
共有 1 個文件被更改,包括 0 次插入36 次删除
  1. 0
    36
      public_html/scripts/amount.php

+ 0
- 36
public_html/scripts/amount.php 查看文件

@@ -1,36 +0,0 @@
1
-<?php
2
-/*  Authors         :   Carlos C. Corrada-Bravo
3
-                        David J. Ortiz-Rivera
4
-
5
-    Organization    :   Centro de Desarrollo y Consultoria Computacional
6
-    Project         :   OPASO Material Registry   
7
-    File            :   extract.php
8
-    Description     :   Extract and insert data from tsv. */
9
-
10
-	/* Import database connection & display errors */
11
-	include_once "config.php";
12
-	error_reporting(E_ALL);
13
-	ini_set("display_errors",1);
14
-
15
-	/* Initiate statement */
16
-	$amount = $db->stmt_init();
17
-	if($amount = $db->prepare("SELECT eid,amount,quantity,total FROM Inventory WHERE amount!='n/a' AND quantity!='n/a' AND total!='n/a'")){
18
-		/* execute */
19
-		if($amount->execute()){
20
-			/* fetch result by rows and generate response to script */
21
-			$result = $amount->get_result();
22
-			$response = array();
23
-			while($mult = $result->fetch_assoc()){
24
-				$key = $mult["eid"];
25
-				$a = $mult["amount"];
26
-				$q = $mult["quantity"];
27
-				$t = $mult["total"];
28
-				if(floatval($a)*floatval($q) != floatval($t)){
29
-					echo $key . '<br>';
30
-					//echo floatval($a)*floatval($q) . ' ' . floatval($t) . '<br>';
31
-				}
32
-			}
33
-			
34
-		}
35
-	}
36
-?>