如何在Php中打开从数据库加载到新页面的目标图像? [英] How Do I Open A Target Image Loaded From Database Into New Page In Php?

查看:45
本文介绍了如何在Php中打开从数据库加载到新页面的目标图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用php打开从mysql数据库加载到新页面的目标图像,就像当您点击电子商务网站中的产品时,它将目标图像打开到新的动态页面(新页面) )。所有帮助欢迎thanx:)

I want to open a target image loaded from a mysql database to a new page using php, just like when you click on a product in an e-commerce websites it opens that target image into a new dynamic page (a new page). All help welcome thanx :)

推荐答案

并且下面的代码没有经过测试,只是为了向您展示一个例子。



如果我理解正确,你需要两个php页面。

1. index.php - 用于获取页面中的所有图像链接

and the code below not tested it's just for to show u an example.

if i understand you correctly, you neeed two php pages.
1. index.php - use for fetch all the images links in the page
index.php
	


query = select * from tbl_image;
query = "select * from tbl_image;


stmt =


这篇关于如何在Php中打开从数据库加载到新页面的目标图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆