I have a post table like this one:
id|title|slug| tags |
1 |aaaaa|aaaa|cms,php,review|
How can I split the "tags" string and make each one into a tag that is clickable like these:
this is title of post
this is description of the post
category(blog, internet)
tags(cms, php, review)"each of them will be a link".
try something like this using explode
<?php
$explo_str = explode(',',$tags_string)//tags string is your data straight from the mysql table in this case cms,php,review
for($i=0 ; $i < sizeof($explo_str) ; $i++)
{
echo '<a href="your link">'.$explo_str[$i].'</a>';
}
?>