I want to convert a text and comma separated text to link and class, Like:
facebook.com,facebook
twitter.com,twitter
youtube.com,youtube
text before comma will be link and text after comma will be link class attribute, like
$link = text before comma
$class= text after comma
<a href="$link" class="$class">$class</a>
and get all list using loop.
please don’t put half code, treat me as beginner and help me,
thanks
Seems like you’re trying to pull from a database. I’m gonna go out on a limb here and say you’re just using the basic
mysql_*functions.I think $lcass will be $class