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.

Leave a Reply




Created by DesignForWeb company. All rights reserved © 2007-2010. Check also the iPhone / iPad developers blog
Disclaimer
The materials collected in this blog were taken from open access sources. We try our best to preserve the copyrights of original authors and clearly state the authorship as well as link to original source website where it's possible. Please leave your comment if you feel offended by any post or if you dispose of any information about breach of copyright law in this blog. We will do our best to resolve the situation immediately.