$db=mysql_connect("$hostname","$user","$password" )or die("Unable to connect to the database"); //Connect to the library mysql_select_db("yourdatabse",$db) or die("Unable to open the database"); $sql="select * from upfile"; $result =mysql_query($sql); if ($myrow = mysql_fetch_array($result)) { echo "
n"; echo "
< td>filename< /td>
Upload Date
Uploader
File Description
File Type
tr>n"; td>%s
%s
%s
%s
n",$myrow[" filename"],$myrow["filename"],$myrow["date"],$myrow["uploader"],$myrow["fileshow"],$myrow["type"]); List all files for download. echo "There are no files in the file exchange area Return"; div>
The above introduces the script (1) for establishing the file exchange function of redeeming Bank of Communications credit card points, including the content of redeeming Bank of Communications credit card points. I hope it will be helpful to friends who are interested in PHP tutorials.
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn