Advertisement
Advertisement
| 05.16.2008 at 07:42PM PDT, ID: 23410155 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: |
<?php require_once('../Connections/host88.php');
$AccNo = $_POST['AccNo'];
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;
}
}
mysql_select_db($database_host88, $host88);
$query_RecStock = "SELECT prdmas.Code, prdmas.Name, prdmas.OnHand, prdmas.SellPrice1, prdmas.Shelf1, prdmas.Stare1, prdmas.Sel2, prdmas.str02 FROM prdmas Where prdmas.OnHand > 0 AND prdmas.Shelf1 = '$AccNo' ";
$RecStock = mysql_query($query_RecStock, $host88) or die(mysql_error());
$row_RecStock = mysql_fetch_assoc($RecStock);
$totalRows_RecStock = mysql_num_rows($RecStock);
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="CtrStock2.php">
<table width="200" border="1">
<tr>
<td>Productcode</td>
<td>Amount</td>
<td>ProName</td>
<td>Price</td>
<td>Shelf</td>
</tr>
<?php do { ?>
<tr>
<td><label>
<input name="ProDuctCode[]" type="text" id="textfield2" value="<?php echo $row_RecStock['Code']; ?>" readonly="true" />
</label></td>
<td><label>
<input type="text" name="Amount[]" id="textfield" />
</label></td>
<td><input name="ProName[]" type="text" id="textfield3" value="<?php echo $row_RecStock['Name']; ?>" readonly="true" /></td>
<td><input name="Price[]" type="text" id="textfield4" value="<?php echo $row_RecStock['SellPrice1']; ?>" readonly="true" /></td>
<td><input name="Shelf[]" type="text" id="textfield5" value="<?php echo $row_RecStock['Shelf1']; ?>" /></td>
</tr>
<?php } while ($row_RecStock = mysql_fetch_assoc($RecStock)); ?>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><label>
<input type="submit" name="button" id="button" value="Submit" />
</label></td>
<td> </td>
<td> </td>
</tr>
</table>
</form>
</body>
</html>
<?php
mysql_free_result($RecStock);
?>
|