我正试图显示一个图像以及数据库中的其他信息。
<?php
mysql_connect("localhost","111","222") or die("Could not connect to localhost");
mysql_select_db("movies") or die( "Could not connect to database");
$result = mysql_query(
因此,我正在学习PHP,并试图使它,以便您可以上传一张图片。当在本地主机上尝试时,我得到的只是一张纸被撕成两半的图片(这一定是一些错误/替换的图片)。图像的目录是正确的,只是显示不正确。谢谢
代码:
<?php
//connect to the database
$link = mysql_connect("localhost", "root", "root")
or die("Could not connect: " . mysql_error());
mysql_select_db("images",
在我的Java EE应用程序中,有一个上传图片的功能。上传图片时,我将image path保存在MySQL数据库中。
现在我想在我的MySQL database table中使用image path that saved when uploading the image在网页上显示上传的图像。
我怎么能这样做呢?