Hoi allemaal,
Ik heb hulp nodig met een scriptje. Het moet een reactie systeem voorstellen maar het werkt niet helemaal. Hier is de link naar de pagina: http://www.ipownface.nl/?p=read_more&newsid=24. Het probleem is makkelijk te zien.
Script zelf:
Style script:
AVB, streedie.
Ik heb hulp nodig met een scriptje. Het moet een reactie systeem voorstellen maar het werkt niet helemaal. Hier is de link naar de pagina: http://www.ipownface.nl/?p=read_more&newsid=24. Het probleem is makkelijk te zien.
Script zelf:
<div id=newsreactie>
<div id=reactietop></div>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ding[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$dinges[/COLOR][COLOR= #007700])){[/COLOR]
[COLOR= #0000BB]$zo[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM Members WHERE username=$ding[naam]"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$myrow[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$zo[/COLOR][COLOR= #007700]);[/COLOR]
?>
<div id=reactiebericht>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$ding[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]];[/COLOR]
?>
</div>
<div id=reactienaam>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"    <img src="[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$myrow[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]avatar[/COLOR][COLOR= #007700]];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]" />    <br>"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$ding[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<br><br><br><br>"[/COLOR][COLOR= #007700];[/COLOR]
?>
</div>
<div id=reactietop></div>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?>
</div> Style script:
#reactietop {width:750px; height:1px; background-color:#000000;}
#reactiebericht {float:right; width:500px;}
#reactienaam {float:left; width:250px;}
#newsreactie {overflow:hidden; width:750px; background:url(images/faux.png) repeat-y;} AVB, streedie.