Hi,
I'm trying to build hierarchical menus using a mysql database and i can't seem to get plain-text links to execute any php. I tried mixing in javascript, but that didn't work either. For instance:
<a href="whatever" onClick="<?php printf('work damn you'); ?>">click</a>
what i tried with javascript was more like...
<script language="javascript">
function ugh() {
<?php
echo 'hi';
?>
}
</script>
then ...
<a href="whatever" onClick="ugh();">hi</a>
Neither of these, or variations thereof work though... Any ideas?
Thanks in advance.