Here is a snippet of my codes
<?php
$animesql = "Select titles.name FROM titles WHERE titles.cat_id = 1 ORDER by name ASC";
$animeres = mysql_query($animesql);
echo "<table id='MISC' style='display:none;' width='200' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td><p class='al_toggle_txt'>";
while ($anime_list = mysql_fetch_assoc($animeres)) {
//$str = str_replace(" ","",$anime_list['name']);
$str = preg_replace('/[^a-zA-Z0-9]/','',$anime_list['name']);
echo "<span style='cursor:pointer;' onclick='toggle_visibility('".strtolower($str) ."');'>".$anime_list['name']."</span><br/>";
}
echo "</p></td></tr>";
echo "</table>";
?>
after the while loop is done of course my list will show in my right column of site... but for the toggle, I have a div in the middle column waiting to be shown when the user clicks on the list name (right column).
and the codes are:
<div id='hackroots' style="display:none;"><h3>Hack Roots</h3>
<p>TEST</p>
</div>
but for sum reason the onclick from the PHP isnt letting my HTML codes work??? WHy is that and how can i fix this issue... Once I solve this issue i can upload my site...
Thanks in advance