Meta description script

New to mod_rewrite? This is a good place to start.

Meta description script

Postby dejvo01 » Thu Feb 07, 2008 3:39 pm

I have one problem with one script is no about mod_rewrite but
maybe somebody can help me...

The name of the field is: "keyword"

So I Use this:

Code: Select all
function show_keyword($keyword_id){
$file = file('cutenews/data/xfieldsdata.txt');
foreach($file as $xfield){
$xfield_arr = explode('|', $xfield);
if($xfield_arr[0] == $xfield_id){
return $xfield_arr[3];

and this

Code: Select all
<meta name="description" content="<?=show_keyword($_GET['keyword']); ?> ">

I want to show in description what I wrote to the field "keyword" but is showing nothing.

Can you help me what else I need to change in the code?

Thank you very much...
Posts: 11
Joined: Tue Sep 11, 2007 1:58 pm

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 3 guests