Hi Guys,
I have php mysql code which display data by date. if date is similar to the another it will display as one. When i implement an accordion it does not work. But if i will get the accordion it really works. And I am kinda stack of it.
Can anyone help me with this how to implement accordion?It seems i got a problem with implementing an accordion with this matter. Can anyone help me?
<?php
$result = mysql_query("SELECT distinct monthname(local_date) as month FROM tbl_localnews");
if(mysql_num_rows($result))
{
while ($row = mysql_fetch_array($result))
{
print("<br><a href='news.php?month=".$row['month']."'>News for ".$row['month']."</a>");
}
mysql_free_result($result);
}
?>