Activity Stream
48,167 MEMBERS
61123 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 2 of 2
  1.     
    #1
    Member
    Website's:
    heroturko.biz softpk.com gfxtra.biz hotfilegfx.com

    Default Problem my display data php mysql

    Hello Friends,

    i want to display date, file name and download link but i want download link in which i insert a link


    i have insert download link is: http://www.yahoo.com but display record is download link show path then insert link like this: http://localhost/test2/installation%...w.yahoo.com%20.


    please solved this problem

    My View Record Code:

    PHP Code: 
    <?php
                            
    // connect to the database
                            
    include('connect-db.php');
                            
                            
    // get the records from the database
                            
    if ($result $mysqli->query("SELECT * FROM servicereq ORDER BY FileID"))
                            {
                                    
    // display records if there are records to display
                                    
    if ($result->num_rows 0)
                                    {
                                    
                                    
    // display records in a table
                                            
    echo "<table border='1' cellpadding='10'>";
                                            
                                            
    // set table headers
                                                       
                                            
    echo "<tr><th>Date</th><th>File Name</th><th>Download Link</th><<th></th><th></th></tr>";
                                            
                                            while (
    $row $result->fetch_object())
                                            {
                                            
                                                    
    // set up a row for each record
                                                    
    echo "<tr>";
                                                    echo 
    "<td>" $row->filename "</td>";
                                                    echo 
    "<td>" $row->date "</td>";
                                                    echo 
    "<td><a href=\". $row->downlink .\">Download Link</a></td>";
                                                    echo 
    "<td><a href='records.php?id=" $row->id "'>Edit</a></td>";
                                                    echo 
    "<td><a href='delete.php?id=" $row->id "'>Delete</a></td>";
                                                    echo 
    "</tr>";
                                            }
                                            
                                            echo 
    "</table>";
                                    }
                                    
    // if there are no records in the database, display an alert message
                                    
    else
                                    {
                                            echo 
    "No results to display!";
                                    }
                            }
                            
    // show an error if there is an issue with the database query
                            
    else
                            {
                                    echo 
    "Error: " $mysqli->error;
                            }
                            
                            
    // close database connection
                            
    $mysqli->close();
                    
                    
    ?>
    softpk Reviewed by softpk on . Problem my display data php mysql Hello Friends, i want to display date, file name and download link but i want download link in which i insert a link i have insert download link is: http://www.yahoo.com but display record is download link show path then insert link like this: http://localhost/test2/installation%20report/01/.%20http://www.yahoo.com%20. please solved this problem Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com
    the problem is where you insert the link

    can you check in database if the link is correct?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. having a problem with Postbit display
    By WebMonster in forum vBulletin
    Replies: 3
    Last Post: 12th Oct 2011, 09:59 AM
  2. Mysql fetch specific data from row (id)
    By roadrunner in forum Web Development Area
    Replies: 9
    Last Post: 23rd Aug 2011, 03:45 PM
  3. replacing mysql $link supplied data, a question?
    By XSLTel in forum Web Development Area
    Replies: 10
    Last Post: 23rd Jul 2011, 03:14 PM
  4. Display problem
    By Th3Kill33r in forum Technical Help Desk Support
    Replies: 0
    Last Post: 13th Nov 2010, 12:02 AM
  5. Fetching Data from mysql database (Well Commented)!
    By litewarez in forum Tutorials and Guides
    Replies: 3
    Last Post: 9th May 2009, 03:36 AM

Tags for this Thread

BE SOCIAL