funkfact
11-17-2010, 02:29 PM
Hi,
I have just viewed the Image Power Zoomer and love what it does, however the instructions say that you have to define a unique image name to apply it to. I am new to PHP and have been making an image uploader that places a link to the image in my database. Is it possible to modify the following code, or that of the Image Zoomer to work with images loaded in this way?
<?php
require('includes/dbinfo.php');
mysql_connect($host, $username, $password) or die(mysql_error()) ;
mysql_select_db($db_name) or die(mysql_error()) ;
$data = mysql_query("SELECT * FROM image_bank") or die(mysql_error());
?>
<?php
while($info = mysql_fetch_array( $data )) {
Echo "<img src=http:images_new/".$info['photo'] .">; }
?>
Any help greatly appreciated :-)
FF
I have just viewed the Image Power Zoomer and love what it does, however the instructions say that you have to define a unique image name to apply it to. I am new to PHP and have been making an image uploader that places a link to the image in my database. Is it possible to modify the following code, or that of the Image Zoomer to work with images loaded in this way?
<?php
require('includes/dbinfo.php');
mysql_connect($host, $username, $password) or die(mysql_error()) ;
mysql_select_db($db_name) or die(mysql_error()) ;
$data = mysql_query("SELECT * FROM image_bank") or die(mysql_error());
?>
<?php
while($info = mysql_fetch_array( $data )) {
Echo "<img src=http:images_new/".$info['photo'] .">; }
?>
Any help greatly appreciated :-)
FF