highlighten-van-zoekcriteria
Gesponsorde koppelingen
PHP script bestanden
Code (php)
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
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<form id="form1" name="form1" method="POST" action="index.php">
<input type="text" id="trefwoord">
<input type="submit" id="submit">
</form>
<?php
if( $_SERVER['REQUEST_METHOD'] == 'POST' )
{
while mysql_fetch_array($sql) {
$dbveld = $row['veld1'];
}
$zoek = $_POST['trefwoord'];
$uitvoer = preg_replace('#(' . trim($zoek) . ')#i',
'<span style="color:#666666;"><b>$1</b></span>',
$dbveld);
?>
<table>
<tr>
<td><?php echo $uitvoer ?></td>
</tr>
</table
<?php
}
?>
<input type="text" id="trefwoord">
<input type="submit" id="submit">
</form>
<?php
if( $_SERVER['REQUEST_METHOD'] == 'POST' )
{
while mysql_fetch_array($sql) {
$dbveld = $row['veld1'];
}
$zoek = $_POST['trefwoord'];
$uitvoer = preg_replace('#(' . trim($zoek) . ')#i',
'<span style="color:#666666;"><b>$1</b></span>',
$dbveld);
?>
<table>
<tr>
<td><?php echo $uitvoer ?></td>
</tr>
</table
<?php
}
?>