Hi,
This is my code.
<?php
include("/home/path/to/my/website/db_connect.php"); //connect to the database
$result2 = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT * from `wp2_search_queries` WHERE (`query` NOT LIKE '%:%') AND (`query` NOT LIKE '%+%') AND (`query` NOT LIKE '%\.%') AND (`query` NOT LIKE '%\'%') AND (`query` NOT LIKE '%\?%') AND (`source` NOT LIKE '%mywebsite.com%') GROUP BY `query` order by `query_date` DESC limit 0,7");
while($rows2=@mysqli_fetch_array($result2)){
$keywords = "{$rows2['query']}".",";
echo $keywords;
}
?>
Now, I want to insert $keywords into the following HTML meta tag:
<meta name='keywords' content='<?php echo $keywords;?>'>
How do I get the 'final product' to look like this?
<meta name='keywords' content='keyword1,keyword2,keyword3,keyword4,keyword5,keyword6,keyword7'>
Please show me the code as I may not be able to understand your instructions. Thanks