/var/www/enzatesting.onesolution.hk/ajax_thumb_dgn_request.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php 
$formid
=$_REQUEST['formid'];
require_once 
"inc/configure.php";

$refid=(int)$_REQUEST['refid'];

    
$sql "SELECT * FROM dgn_request_img WHERE dgn_request_id=:refid ORDER BY refid ASC";        
    
//echo $sql;    
    
$sth $dbh->prepare($sql);
    
$sth->execute( array(":refid"=>$refid) );
    
//echo $sth->getSQL();
    
if($row $sth->fetch() ){?>
    <img src="<?=$row['img_path'].THUMB_PATH.$row['img_src']?>" style="width: 300px;" />
<?php }    unset($sth);?>