Am urmatoarea functie :
Cod: Selectaţi tot
function getcustomeridfromvendorid($vendorid) {
$sql = "SELECT DISTINCT HERSTELLER_ID,KUNNUM1 FROM ARTIKEL,ADRESSEN
JOIN JOURNALPOS ON ARTIKEL.ARTNUM=JOURNALPOS.ARTNUM
AND ADRESSEN.REC_ID=JOURNALPOS.ADDR_ID
WHERE JOURNALPOS.QUELLE=3 && ARTIKEL.HERSTELLER_ID=$vendorid";
$result = $conn->query($sql);
if ($result->num_rows != 0) {
while($row = $result->fetch_assoc()) {
echo '<table align="center" border=1>';
echo "<th>HERSTELLER ID</th><th>Kunden Nummer</th>";
echo '<tr><td>'. $row['HERSTELLER_ID']. '</td><td>'. $row['KUNNUM1']. '</td>';
echo "</table>";
}
}
}
Cod: Selectaţi tot
if(isset($_GET['nummer'])) {
getcustomeridfromvendorid($_GET['nummer']);
}
Cod: Selectaţi tot
<input type="text" name="customerid" placeholder="Customer ID" />