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.
$bar = str_replace(' ', '', $foo);
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php $k = $_GET['k']; $terms = explode(" ", $k);
$query = "SELECT * FROM search WHERE "; echo $k ; ?> | Alenan SuchMaschine</title>
</head>
<body>
<h2>Alenan</h2>
<form action='./search.php' method='get'>
<input type='text' name='k' size='50' value='<?php echo $_GET['k']; ?>' />
<input type='submit' value='Search'>
</form>
<hr />
<?php
//Copyright2010-2011 by Maximilian Koch
$terms = explode(" ", $k);
$query = "SELECT * FROM search WHERE ";
foreach ($terms as $each){
$i++;
if ($i == 1)
$query .= "keywords LIKE '%$each%' ";
else
$query .= "OR keywords LIKE '%$each%' ";
}
//Copyright2010-2011 by Maximilian Koch
// connect
mysql_connect("localhost", "root", "ez26611");
mysql_select_db("such");
$query = mysql_query($query);
$numrows = mysql_num_rows($query);
if ($numrows > 0){
while ($row = mysql_fetch_assoc($query)){
$id = $row['id'];
$title = $row['title'];
$description = $row['descreption'];
$keywords = $row['keywords'];
$link = $row['link'];
//Copyright2010-2011 by Maximilian Koch
echo "<h2><a href='$link'>$title</a></h2>
$description<br /><br />";
}
}
else
echo "No results found for \"<b>$k</b>\"";
//Copyright2010-2011 by Maximilian Koch
// disconnect
mysql_close();
?>
<a href="impressum.php">Impressum</a>
</body>
</html>