I can't get the code below to work... I'm new tostr_replace- this is my first time using it!
I'm trying to get it so special characters are removed from the value...It's messing up jQuery...
Thanks,Code:<ul> <?php $sql01 = mysql_query("SELECT * FROM pages"); while($menu = mysql_fetch_array($sql01)){ $themenuitem = $menu[3]; $replaceit = str_replace($fooarray, "_", $themenuitem); $fooarray = array(":", "!", "?", "<", ">", "(", ")", "%", "$", "#", "@", "*", "&", "^", "{", "}", "[", "]", "/", "\\", "'", "\"", "+"); ?> <li><a href="?page=<?php echo $menu[3]; ?>" id="<?php echo $replaceit; ?>"><?php echo $menu[0]; ?></a></li> <?php } ?> </ul>
X96



Reply With Quote


Bookmarks