PDA

View Full Version : Lightbox.js issues



ericca
11-04-2008, 07:03 PM
1) lightbox.js
2) http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm

3) //new code - still does not work

<a id="imageblack" href="profileimages/<? echo $Image1;?>" rel="lightbox" >
<img src="profileimages/<? echo $Image1; ?>" alt="" border="0" id="img"//></a>

//lightbox.js not working and I need it to reference large image in database. It is set to ref: Image1 but when you alter to Enlarged1 it just references the file profileimages.

//profile pictures mysqlsession

if($_REQUEST['mode']=='del') {

$i=$_REQUEST['num'];

if($Image.$i!="") {
del_img("profileimages/",$Image.$i);
del_img("profileimages/",$Enlarged.$i);
}

$sql = "UPDATE members SET ";
$sql.= "Enlarged".$i." = '', ";
$sql.= "Image".$i." = '' ";
$sql.= " where MemberId=".$_SESSION['_MemberId'];
mysql_query($sql);

header("locationrofile.php");