Jump to content

NLCJ

Members
  • Posts

    129
  • Joined

  • Last visited

    Never

Everything posted by NLCJ

  1. Hello, I've got a problem with creating my own guestbook. It doesn't 'echo' all replies, it doesn't show the last value. So you've got to wait until it someone else replies before you can see it. <?php }elseif($p == gastenboek) { ?> <center>[<a href="?p=ngastenboek">Nieuwe reactie</a>]</center><br> <?php while($berichten = mysql_fetch_array($d_getberichten)) { ?> <div class="gastenboek"> <div class="informatie"> <?php $d_getgastenboekusers = mysql_query("SELECT * FROM users WHERE id='".mysql_real_escape_string($berichten['userid'])."'"); $d_gastenboekusers = mysql_fetch_array($d_getgastenboekusers); echo "Verzonden door <i>".$d_gastenboekusers['voornaam']." ".$d_gastenboekusers['achternaam']."</i> op ".$berichten['datum']." om ".$berichten['tijd']."."; ?> </div> <div class="bericht"> <?php echo "<b>".$berichten['titel']."</b><br>".$berichten['tekst']; ?> </div> </div> <?php } ?> Thank you.
  2. NLCJ

    Dynamic menu

    Thank you very much, it's working!
  3. NLCJ

    Dynamic menu

    Now it only shows the second value. Thank you though for answering, one step closer to the solution! EDIT: It shows all except the first one... :S
  4. NLCJ

    Dynamic menu

    Hello, I am creating a website, and I was trying to create a dynamic menu by using MySQL. So it would be easier to manage, through an Admin panel you can insert information in MySQL and the dynamic menu will take it out like this: $d_getlinks = "SELECT * FROM paginas"; $d_links = mysql_fetch_array(); <div class="menu"> <a href="<?php echo $d_links['link']; ?>"><?php echo $d_links['menu']; ?></a> </div> This gives the result I wanted except that it only gives the first value, how can I get it to display ALL the links in that table? Regards, Chris
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.