Doğru Cevap
-
<?php include('mysql.php'); ?><?
mysql_query("SET NAMES 'utf8'");
$search=$_POST["search"];
//Unutmayın! Bu php kodları içinde ki "makaleler" ve "makale" kısımlarıi,veritabanında önceden oluşturduğum tablo ve veri tabanı isimleri.
$result = mysql_query("SELECT * FROM music WHERE musicname LIKE '%$search%'");
while($r=mysql_fetch_array($result))
{
?>
<!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>
<link rel="stylesheet" type="text/css" href="style.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Listen Music. Download Free Music. Upload Music." />
<meta name="keywords" content="listen,music,download,free,upload,fizy,<? echo ''.$search.''; ?>" />
<title><? echo ''.$search.''; ?> - </title>
<?php } ?>
son eklediğim kapatma tagını koymamışsın
Cevaplar
Hiç cevap bulunamadı.