Page 1 of 1

I have a proplem..

Posted: Fri Aug 04, 2006 2:19 am
by caykoylu
I have a site.But I have a proplem about dynamic title.

Site Title is static.so itsn't change every page.

I want change meta tag dependent in article Title. Namely, I want be article Title = page meta title

index.php code

Code: Select all

..........................................
if (txt_direction == 'LTR') 
  { 
    echo '<html>'; 
  } 
  else 
  { 
    echo '<html dir="rtl">'; 
  } 

  echo '<head> 
<title>'; 
  echo title; 
  echo '</title> 
        <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset='; 
  echo encoding; 
  echo '"> 
        <META NAME="keywords" CONTENT="'; 
  echo keywords; 
  echo '"> 
        <META NAME="description" CONTENT="'; 
  echo description; 
  echo '"> 
</head> 
'; 
  echo bodytagset; 
  echo ' 
'; 
.........................
main.php code

Code: Select all

.................
if ($article1 = mysql_fetch_array ($result1)) 
            { 
              echo '<font color="black"><b>.</b></font> <a href="index.php?id='; 
              echo $article1['id']; 
              echo '" STYLE="color:'; 
              echo catlist_title_color; 
              echo '; font-family:'; 
              echo catlist_title_font; 
              echo '; font-size:'; 
              echo catlist_title_font_size; 
              echo '; font-weight:'; 
              echo catlist_title_font_weight; 
              echo ';">'; 
              echo $article1['title']; 
              echo '</a><br>'; 
              continue; 
            } 
          } 

          echo '                        </td> 
                        <td valign="top"> 
                                        '; 
...................
Can you help me?
Sincerely

Posted: Fri Aug 04, 2006 7:41 am
by feyd
You've got a thread on this already. Please continue using it.
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.