DaWaWi
Neue Rechnung estellen
= 1)
{ $ER1 = $_POST["ER1"]; }
else
{ $ER1 = 0; }
if ($_POST["ER2"] >= 1)
{ $ER2 = $_POST["ER2"]; }
else
{ $ER2 = 0; }
if ($_POST["ER3"] >= 1)
{ $ER3 = $_POST["ER3"]; }
else
{ $ER3 = 0; }
if ($_POST["ER4"] >= 1)
{ $ER4 = $_POST["ER4"]; }
else
{ $ER4 = 0; }
if ($_POST["ER5"] >= 1)
{ $ER5 = $_POST["ER5"]; }
else
{ $ER5 = 0; }
if ($_POST["ER6"] >= 1)
{ $ER6 = $_POST["ER6"]; }
else
{ $ER6 = 0; }
if ($_POST["ER7"] >= 1)
{ $ER7 = $_POST["ER7"]; }
else
{ $ER7 = 0; }
if ($_POST["ER8"] >= 1)
{ $ER8 = $_POST["ER8"]; }
else
{ $ER8 = 0; }
if ($_POST["ER9"] >= 1)
{ $ER9 = $_POST["ER9"]; }
else
{ $ER9 = 0; }
if ($_POST["ER10"] >= 1)
{ $ER10 = $_POST["ER10"]; }
else
{ $ER10 = 0; }
if ($_POST["ER11"] >= 1)
{ $ER11 = $_POST["ER11"]; }
else
{ $ER11 = 0; }
if ($_POST["ER12"] >= 1)
{ $ER12 = $_POST["ER12"]; }
else
{ $ER12 = 0; }
if ($_POST["ER13"] >= 1)
{ $ER13 = $_POST["ER13"]; }
else
{ $ER13 = 0; }
if ($_POST["ER14"] >= 1)
{ $ER14 = $_POST["ER14"]; }
else
{ $ER14 = 0; }
if ($_POST["ER15"] >= 1)
{ $ER15 = $_POST["ER15"]; }
else
{ $ER15 = 0; }
if ($_POST["ER16"] >= 1)
{ $ER16 = $_POST["ER16"]; }
else
{ $ER16 = 0; }
if ($_POST["ER17"] >= 1)
{ $ER17 = $_POST["ER17"]; }
else
{ $ER17 = 0; }
if ($_POST["ER18"] >= 1)
{ $ER18 = $_POST["ER18"]; }
else
{ $ER18 = 0; }
if ($_POST["ER19"] >= 1)
{ $ER19 = $_POST["ER19"]; }
else
{ $ER19 = 0; }
if ($_POST["ER20"] >= 1)
{ $ER20 = $_POST["ER20"]; }
else
{ $ER20 = 0; }
if ($_POST["ER21"] >= 1)
{ $ER21 = $_POST["ER21"]; }
else
{ $ER21 = 0; }
if ($_POST["ER22"] >= 1)
{ $ER22 = $_POST["ER22"]; }
else
{ $ER22 = 0; }
if ($_POST["ER23"] >= 1)
{ $ER23 = $_POST["ER23"]; }
else
{ $ER23 = 0; }
if ($_POST["ER24"] >= 1)
{ $ER24 = $_POST["ER24"]; }
else
{ $ER24 = 0; }
if ($_POST["ER25"] >= 1)
{ $ER25 = $_POST["ER25"]; }
else
{ $ER25 = 0; }
if ($_POST["ER26"] >= 1)
{ $ER26 = $_POST["ER26"]; }
else
{ $ER26 = 0; }
if ($_POST["ER27"] >= 1)
{ $ER27 = $_POST["ER27"]; }
else
{ $ER27 = 0; }
if ($_POST["ER28"] >= 1)
{ $ER28 = $_POST["ER28"]; }
else
{ $ER28 = 0; }
if ($_POST["ER29"] >= 1)
{ $ER29 = $_POST["ER29"]; }
else
{ $ER29 = 0; }
if ($_POST["ER1"] >= 1)
{ $ER1 = $_POST["ER1"]; }
else
{ $ER1 = 0; }
if ($_POST["ER30"] >= 1)
{ $ER30 = $_POST["ER30"]; }
else
{ $ER30 = 0; }
mysql_connect("localhost","root","");
$RNEU1 = mysql_db_query("Wawi","SELECT $SEN, $SEB, NettopreisS, Artikelnummer, Einheit, Bezeichnung FROM artikel WHERE ean = $ER1");
while ($RNEU1A = mysql_fetch_array($RNEU1))
{
$R1NE = $RNEU1A[$SEN];
$R1BP = $RNEU1A[$SEB];
$R1AN = $RNEU1A[Artikelnummer];
$R1EH = $RNEU1A[Einheit];
$R1BE = $RNEU1A[Bezeichnung];
}
$RNEU2 = mysql_db_query("Wawi","SELECT $SEN, $SEB, NettopreisS, Artikelnummer, Einheit, Bezeichnung FROM artikel WHERE ean = $ER2");
while ($RNEU2A = mysql_fetch_array($RNEU2))
{
$R2NE = $RNEU2A[$SEN];
$R2BP = $RNEU2A[$SEB];
$R2AN = $RNEU2A[Artikelnummer];
$R2EH = $RNEU2A[Einheit];
$R2BE = $RNEU2A[Bezeichnung];
}
$RNEU3 = mysql_db_query("Wawi","SELECT $SEN, $SEB, NettopreisS, Artikelnummer, Einheit, Bezeichnung FROM artikel WHERE ean = $ER3");
while ($RNEU3A = mysql_fetch_array($RNEU3))
{
$R3NE = $RNEU3A[$SEN];
$R3BP = $RNEU3A[$SEB];
$R3AN = $RNEU3A[Artikelnummer];
$R3EH = $RNEU3A[Einheit];
$R3BE = $RNEU3A[Bezeichnung];
}
$RNEU4 = mysql_db_query("Wawi","SELECT $SEN, $SEB, NettopreisS, Artikelnummer, Einheit, Bezeichnung FROM artikel WHERE ean = $ER4");
while ($RNEU4A = mysql_fetch_array($RNEU4))
{
$R4NE = $RNEU4A[$SEN];
$R4BP = $RNEU4A[$SEB];
$R4AN = $RNEU4A[Artikelnummer];
$R4EH = $RNEU4A[Einheit];
$R4BE = $RNEU4A[Bezeichnung];
}
$RNEU5 = mysql_db_query("Wawi","SELECT $SEN, $SEB, NettopreisS, Artikelnummer, Einheit, Bezeichnung FROM artikel WHERE ean = $ER5");
while ($RNEU5A = mysql_fetch_array($RNEU5))
{
$R5NE = $RNEU5A[$SEN];
$R5BP = $RNEU5A[$SEB];
$R5AN = $RNEU5A[Artikelnummer];
$R5EH = $RNEU5A[Einheit];
$R5BE = $RNEU5A[Bezeichnung];
}
?>