5 Replies Latest reply on Mar 16, 2009 11:56 PM by Waleed Barakat

    adobe developer gallery help

      Hi i am new to this but i am following tutorials to learn, I am trying to gte the gallery to work, i am playing around I have done all upto the show thumbnails which is working fine. <br /> <br />I just cant get the show image to work, I just keep getting image not found. here is my code if that helps... <br />_____________________________________________________________________ <br /><?php<br />// Load the tNG classes<br />require_once('includes/tng/tNG.inc.php');<br />?> <br /> <img src="%3C?php%20echo%20tNG_showDynamicImage(" />" /&gt; <br /> <br /><?php require_once('Connections/gallery2.php'); ?> <br /><?php<br />if (!function_exists("GetSQLValueString")) {<br />function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") <br />{<br />  if (PHP_VERSION < 6) {<br />    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;<br />  }<br /><br />  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);<br /><br />  switch ($theType) {<br />    case "text":<br />      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";<br />      break;    <br />    case "long":<br />    case "int":<br />      $theValue = ($theValue != "") ? intval($theValue) : "NULL";<br />      break;<br />    case "double":<br />      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";<br />      break;<br />    case "date":<br />      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";<br />      break;<br />    case "defined":<br />      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;<br />      break;<br />  }<br />  return $theValue;<br />}<br />}<br /><br />$colname_Recordset1 = "-1";<br />if (isset($_GET['id_img'])) {<br />  $colname_Recordset1 = $_GET['id_img'];<br />}<br />mysql_select_db($database_gallery2, $gallery2);<br />$query_Recordset1 = sprintf("SELECT * FROM image_img WHERE id_img = %s", GetSQLValueString($colname_Recordset1, "int"));<br />$Recordset1 = mysql_query($query_Recordset1, $gallery2) or die(mysql_error());<br />$row_Recordset1 = mysql_fetch_assoc($Recordset1);<br />$totalRows_Recordset1 = mysql_num_rows($Recordset1);<br /><br />mysql_free_result($Recordset1);<br />?> <br />_____________________________________________________________________ <br /> <br />Thanks if you need more info let me know.