<?php
include "start_cache1.php";
$base="xxx";
$link = mysql_pconnect("localhost", "xxx", "xxx1");
mysql_select_db("xxx", $link);
$sql = "SELECT * FROM programas WHERE id=$id";
$result= mysql_query($sql,$link);
$row= mysql_fetch_array($result);
$title = $row["title"];
$description = $row["description"];
$links = $row["link"];
$id = $array['id'];
$cambiar = array ('ç', 'á', 'é', 'Ã*', 'ó', 'ú', 'Ã�', 'É', 'Ã�', 'Ó', 'Ú', '(', ')');
$sustituir = array ('c', 'a', 'e', 'i', 'o', 'u', 'a', 'e', 'i', 'o', 'u', '', '');
$description = str_replace($cambiar, $sustituir, $description);
$description = str_replace(" ", "", $description);
$description = strtolower($description);
$titlem = strtoupper($title);
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="es-ES">
<title><?php echo $titlem;?> portal mujer</title>
<meta name="description" content="Pregunta: <?php echo $titlem;?> mujer" />
<meta name="keywords" content="keywords">arkadaslar yukardıkı title almıyor sayfada bakabılırmısınız bi acaba ne yapmam gerek..
title almıyor.. php yardım
3
●499
- 28-04-2010, 02:39:17
- 28-04-2010, 03:52:23Üyeliği durdurulduYaptığım gibi çalışmanı tavsiye ederim
ayar.php
<?php $dbserver = "localhost"; $dbuser = "XXXXXXXXXXXXXXXXXXXXXX"; $dbpass = "XXXXXXXXXXXX"; $con = mysql_connect($dbserver,$dbuser,$dbpass); if (!$con) { die('Data nerede abi bulamadım : ' . mysql_error()); } mysql_select_db("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", $con); mysql_query("SET NAMES 'utf-8' COLLATE 'utf8_turkish_ci'"); $result = mysql_query("SELECT * FROM tblayarla WHERE ID=1"); if($row = mysql_fetch_array($result)) { $Title = $row['Title']; $Email = $row['Email']; $Web = $row['Web']; $Keywords = $row['Keywords']; $Desc = $row['Desc']; } ?>
head.php
<head> <title><?=$Title?></title> <meta name="description" content="<?=$Desc?>"> <meta name="keywords" content="<?=$Keywords?>"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" /> <meta http-equiv="Content-Language" content="tr"> <?php if ($COMMONERROR!=""){ ?> <script language="javascript"> window.alert('<?=$COMMONERROR?>'); </script> <?php $COMMONERROR=""; } ?> </head>
DB
CREATE TABLE IF NOT EXISTS `tblayarla` ( `ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `Title` varchar(200) NOT NULL DEFAULT '', `Email` varchar(200) NOT NULL DEFAULT '', `Web` varchar(200) NOT NULL DEFAULT '', `Keywords` text NOT NULL, `Desc` text NOT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
ÖRNEK
<head> <? include("head.php"); ?> </head>