Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Internet Explorer help...How to Create a Simple Navigation...

    How to Create a Simple Navigation Like Next-Previous with PHP(using DB information)?
    Last edited by sellerdaedric; 03-15-2009 at 07:37 PM.

  • #2
    New to the CF scene
    Join Date
    Mar 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation For this page...

    <?php
    $result = mysql_query("SELECT id,meta_d,author,date,title FROM other",$db);
    $myrow = mysql_fetch_array($result);
    do
    {
    $id = $myrow['id'];
    if ($id != 0){
    printf("<table width='485' border='0'>
    <tr>
    <td width='200'><p class='class1'><a href='view_other.php?id=%s>'><p>%s</p></a>
    <td width='285'><p class='class1'>%s</p></td>
    </tr>
    <tr>
    <td width='200'><h4 class='class2'>Date:<br>Author:</h4></td>
    <td width='285'><h4 class='class2'>%s<br>%s</h4></td>
    </tr>
    </table><br>"
    $myrow['id'],$myrow['title'],$myrow['meta_d'],$myrow['date'],$myrow['author']);
    }
    else echo "<p class='class3'>No info in DB!!!</p>";
    }
    while($myrow = mysql_fetch_array($result));
    ?>


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •