maybe somebody can help me...
The name of the field is: "keyword"
So I Use this:
- Code: Select all
<?php
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...