Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
echo '<form action="wlw_produktsuche2.php" method="post">';
echo '<br><br /><br />';
$i=1;
@$res = sql("SELECT *, produkte.Produkte
FROM adressen
left join produkte on adressen.firmen_id = produkte.firmen_id
where produkte like '%".$_REQUEST['var']."%' and Land like '".$_REQUEST['lkz']."'
order by Postleitzahl");
echo '<table border=1>
<tr>
<td>Firmen-ID</td>
<td>Firma</td>
<td>Straße</td>
<td>Land</td>
<td>Postleitzahl</td>
<td>Ort</td>
</tr>';
while ($row=mssql_fetch_array($res)){
echo '<tr>
<td><input type="hidden" name="Firmen_ID'.$i.'" value="'.$row['Firmen_ID'].'" \>'.$row['Firmen_ID'].'</td>
<td>'.$row['Firma'].'</td>
<td>'.$row['Straße'].'</td>
<td>'.$row['Land'].'</td>
<td>'.$row['Postleitzahl'].'</td>
<td>'.$row['Ort'].'</td>
<td>'.$row['Produkte'].'</td>
<td><input type="checkbox" name="speichern'.$i.'" value="'.$i.'" \></td>
</tr>';
$i++;}
echo '</table>';
array(23) { ["Firmen_ID1"]=> string(10) "0000139108" ["Firmen_ID2"]=> string(10) "0000111023" ["Firmen_ID3"]=> string(10) "0000745355" ["Firmen_ID4"]=> string(10) "0000771909" ["Firmen_ID5"]=> string(10) "0000786879" ["Firmen_ID6"]=> string(10) "0000177065" ["Firmen_ID7"]=> string(10) "0000178497" ["Firmen_ID8"]=> string(10) "0000145084" ["Firmen_ID9"]=> string(10) "0000171262" ["Firmen_ID10"]=> string(10) "0000311938" ["Firmen_ID11"]=> string(10) "0000182129" ["Firmen_ID12"]=> string(10) "0000157436" ["Firmen_ID13"]=> string(10) "0000180322" ["Firmen_ID14"]=> string(10) "0000177586" ["Firmen_ID15"]=> string(10) "0000966771" ["Firmen_ID16"]=> string(10) "0000522175" ["Firmen_ID17"]=> string(10) "0000635745" ["Firmen_ID18"]=> string(10) "0000318548" ["Firmen_ID19"]=> string(10) "0000747141" ["Firmen_ID20"]=> string(10) "0000148340" ["speichern20"]=> string(2) "20" ["Firmen_ID21"]=> string(10) "0000173315" ["speichern21"]=> string(2) "21" }
<input type="hidden" name="Firmen_ID'.$i.'" value="'.$row['Firmen_ID'].'" \>
array(2) { ["Firmen_ID20"]=> string(10) "0000148340" ["Firmen_ID21"]=> string(10) "0000173315" }
<input type="checkbox" name="Firmen_ID[]" value="'.$row['Firmen_ID'].'" \>
array(1) { ["Firmen_ID"]=> array(2) { [0]=> string(10) "0000148340" [1]=> string(10) "0000173315" } }
0000148340
0000173315
foreach ($_REQUEST['Firmen_ID'] as $value)
{
echo "<br>", $value ;
}
include 'inc/wlw.php';
foreach ($_REQUEST['Firmen_ID'] as $value)
{
echo "<br>", $value ;
}
$res = mssql_query("select * from adressen
where Firmen_ID = '".$value"' ");
while ($row=mssql_fetch_assoc($res))
{
$row['Firma'] '<br>';
}
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\Inetpub\php\wlw_produktsuche2.php on line 23
$res = mssql_query("select * from adressen
where Firmen_ID = '".$value."' "); //Punkt vergessen