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 3 of 3
  1. #1
    New Coder
    Join Date
    Sep 2009
    Posts
    40
    Thanks
    3
    Thanked 0 Times in 0 Posts

    doc link problem

    I have uplodaded doc file in mysql db(Estimation of serum ferritin.doc )
    When i Use
    PHP Code:
    <a href=uploads/<?php echo $pub_loc;?>>Read more...</a>
    it give me the First Name only(Estimation)
    What is the error please help me
    PHP Code:
    <?php
        
    include 'main.php'// connection to DB
        
    $link bio_connect();//connection to DB
        
    $res mysql_query("select * from publications")or die(mysql_error());
        while (
    $row=mysql_fetch_array($res))
            {
                
    $pub_id $row[pub_id];
                
    $pub_title $row[pub_title];
                
    $pub_obj $row[pub_obj];
                            
    $pub_loc $row[pub_loc];
                            
    $pub_date $row[pub_date];
            
        
    ?>
        <?php echo $pub_date;?>
       <tr align=left valign=top><p><font color=#0000FF><strong><?php echo $pub_title;?></strong></font></p>
          <?php echo $pub_obj;?>
        <a href=uploads/<?php echo $pub_loc;?>>Read more...</a>
        <hr></p></tr><br>
          <?php
    }
    ?>
    Last edited by hassanab; 09-09-2009 at 12:32 PM.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,864
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    All attribute values should be enclosed by quotes, like
    PHP Code:
    <a href="uploads/<?php echo $pub_loc;?>">Read more...</a>
    PS: Validate and fix the errors in your markup!
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New Coder
    Join Date
    Sep 2009
    Posts
    40
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Thank you very much for help me


  •  

    Posting Permissions

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