Results 1 to 2 of 2
-
21st Apr 2012, 08:20 PM #1OPMemberWebsite's:
heroturko.biz softpk.com gfxtra.biz hotfilegfx.comProblem 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
-
22nd Apr 2012, 11:42 AM #2MemberWebsite's:
wscripts.net damnlolscript.com lulzjet.comthe problem is where you insert the link
can you check in database if the link is correct?
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
having a problem with Postbit display
By WebMonster in forum vBulletinReplies: 3Last Post: 12th Oct 2011, 09:59 AM -
Mysql fetch specific data from row (id)
By roadrunner in forum Web Development AreaReplies: 9Last Post: 23rd Aug 2011, 03:45 PM -
replacing mysql $link supplied data, a question?
By XSLTel in forum Web Development AreaReplies: 10Last Post: 23rd Jul 2011, 03:14 PM -
Display problem
By Th3Kill33r in forum Technical Help Desk SupportReplies: 0Last Post: 13th Nov 2010, 12:02 AM -
Fetching Data from mysql database (Well Commented)!
By litewarez in forum Tutorials and GuidesReplies: 3Last Post: 9th May 2009, 03:36 AM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...