MySQL and PHP issue
Hello, I have been trying to produce a simple Blog editor for my own site but as soon as I get close to the end, There is a problem. This time I have tried to put a bit of a javascript function in the posts and they run of of a PHP echo so trying to get it to work is a problem. It might just be easier to show you.
echo '<div id="floater">';
echo '<a href="javascript:change();"><img src="information.png" alt="-" /></a>';
echo '<div id="floating_box">';
echo "<b>Title:</b> ".$row['ATitle']. "<br />";
echo "<b>Author:</b> ".$row['AAuthor']. "<br />";
echo "<b>Date:</b> ".$row['ADate']. "<br />";
echo "<b>Tags:</b> ".$row['AATags']. "<br />";
echo '</div>';
echo '</div>';
I can't find a way to run the function where it doesn't interfere with itself. Because the java-script selects the element by id, I can't do too much with it. I was hoping there would be a way to run it as a child of the link so I could run it as a:
document.child.getElementById('Floating_box').style;
Even though that isn't probably the real function. But I do need to run it so there can be multiple of these boxes on the page. Thank-you.
