I have a list of keywords in a database field called “keywords”, that I turn into a keyword list to display on a blog as cloud type tags.
//KEYWORD TAG MANUFACURE
$keywordtags="$keywords";
$keyarray=explode(",",$keywordtags);
//print $keyarray;
foreach($keyarray as $value){
$keytag.="<a href="#">$value</a>";
}
$keytags=$keytag;
// END KEYWORD TAG MANUFACURE
All worked well with the above code, but when I went to php 8.1 it failed.
The error message I get is..
[21-Jun-2024 15:17:44 UTC] PHP Warning: Undefined variable $keytag in /home/user/public_html/blog.php on line 204
Any help greatly appreciated
It was working fine but upgrading t php 8.1 it then failed