Initial commit
This commit is contained in:
18
test.php
Normal file
18
test.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
require_once("config.inc.php");
|
||||
require_once("func_htmlclean.php");
|
||||
$db = dbconnect();
|
||||
|
||||
|
||||
$query = "SELECT luesid, stichwort
|
||||
FROM lue_stichworte";
|
||||
$result = $db->query($query) or die("Cannot execute query");
|
||||
while ($row = $result->fetch_array()) {
|
||||
$stichwort = htmlentities($row['stichwort']);
|
||||
$stichwort = htmlclean($stichwort, $db);
|
||||
echo "$stichwort<br>";
|
||||
$sql = $db->query("UPDATE lue_stichworte
|
||||
SET stichwort=trim('$stichwort')
|
||||
WHERE luesid=$row[luesid]");
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user