I understood what you mean.
I completed all the fields... and it works, but I cannot see the image....
This is the code of the detail page:
<?php require_once('Connections/foto.php'); ?>
<?php require_once("WA_DataAssist/WA_AppBuilder_PHP.php"); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
?><?php
if (!session_id()) session_start();
?>
<?php
$ParamphotoID_WADAtblPhotos = "-1";
if (isset($_GET['photoID'])) {
$ParamphotoID_WADAtblPhotos = (get_magic_quotes_gpc()) ? $_GET['photoID'] : addslashes($_GET['photoID']);
}
$ParamSessionphotoID_WADAtblPhotos = "-1";
if (isset($_SESSION['WADA_Insert_tblPhotos'])) {
$ParamSessionphotoID_WADAtblPhotos = (get_magic_quotes_gpc()) ? $_SESSION['WADA_Insert_tblPhotos'] : addslashes($_SESSION['WADA_Insert_tblPhotos']);
}
$ParamphotoID2_WADAtblPhotos = "-1";
if (isset($_GET['photoID'])) {
$ParamphotoID2_WADAtblPhotos = (get_magic_quotes_gpc()) ? $_GET['photoID'] : addslashes($_GET['photoID']);
}
mysql_select_db($database_foto, $foto);
$query_WADAtblPhotos = sprintf("SELECT photoID, photoTitolo, photoTitle, photoDescr, photoDesceng, photoLocation, photoThum, albumID FROM tblPhotos WHERE photoID = %s OR ( -1= %s AND photoID= %s)", GetSQLValueString($ParamphotoID_WADAtblPhotos, "int"),GetSQLValueString($ParamphotoID2_WADAtblPhotos, "int"),GetSQLValueString($ParamSessionphotoID_WADAtblPhotos, "int"));
$WADAtblPhotos = mysql_query($query_WADAtblPhotos, $foto) or die(mysql_error());
$row_WADAtblPhotos = mysql_fetch_assoc($WADAtblPhotos);
$totalRows_WADAtblPhotos = mysql_num_rows($WADAtblPhotos);?>
<?php
// WA Application Builder Delete
if (isset($_POST["Delete_x"])) // Trigger
{
$WA_connection = $foto;
$WA_table = "tblPhotos";
$WA_redirectURL = "tblPhotos_Results.php";
if (function_exists("rel2abs")) $WA_redirectURL = $WA_redirectURL?rel2abs($WA_redirectURL,dirname(__FILE__)):"";
$WA_keepQueryString = false;
$WA_fieldNamesStr = "photoID";
$WA_columnTypesStr = "undefined";
$WA_fieldValuesStr = "".((isset($_POST["WADADeleteRecordID"]))?$_POST["WADADeleteRecordID"]:"") ."";
$WA_comparisonStr = "=";
$WA_fieldNames = explode("|", $WA_fieldNamesStr);
$WA_fieldValues = explode("|", $WA_fieldValuesStr);
$WA_columns = explode("|", $WA_columnTypesStr);
$WA_comparisions = explode("|", $WA_comparisonStr);
$WA_connectionDB = $database_foto;
mysql_select_db($WA_connectionDB, $WA_connection);
if (!session_id()) session_start();
$deleteParamsObj = WA_AB_generateWhereClause($WA_fieldNames, $WA_columns, $WA_fieldValues, $WA_comparisions);
$WA_Sql = "DELETE FROM `" . $WA_table . "` WHERE " . $deleteParamsObj->sqlWhereClause;
$MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());
if ($WA_redirectURL != "") {
if ($WA_keepQueryString && $WA_redirectURL != "" && isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] !== "" && sizeof($_POST) > 0) {
$WA_redirectURL .= ((strpos($WA_redirectURL, '?') === false)?"?":"&").$_SERVER["QUERY_STRING"];
}
header("Location: ".$WA_redirectURL);
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Details tblPhotos</title>
<link href="WA_DataAssist/styles/Refined_Pacifica.css" rel="stylesheet" type="text/css" />
<link href="WA_DataAssist/styles/Arial.css" rel="stylesheet" type="text/css" />
<style type="text/css">
/* Title Section */
#WADAPageTitleArea {
width: 555px;
}
#WADAPageTitleArea div, #WADAPageTitleArea p {
font-size: 11px;
padding-bottom: 10px;
}
#WADAPageTitleArea div#WADAPageTitle, #WADAPageTitle {
font-size: 14px;
font-weight: bold;
}
/* Details page CSS */
.WADADetailsContainer {
font-size: 11px;
}
#WADADetails {
padding-top: 10px;
}
</style>
</head>
<body>
<div class="WADADetailsContainer"> <a name="top"></a>
<div id="WADAPageTitleArea">
<div id="WADAPageTitle">Page Title</div>
</div>
<div class="WADAHorizLine"><img src="WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
<?php if ($totalRows_WADAtblPhotos > 0) { // Show if recordset not empty ?>
<div id="WADADetails">
<div class="WADAHeader">Details</div>
<table class="WADADataTable" cellpadding="0" cellspacing="0" border="0">
<tr>
<th class="WADADataTableHeader">photoID:</th>
<td class="WADADataTableCell"><?php echo($row_WADAtblPhotos['photoID']); ?></td>
</tr>
<tr>
<th class="WADADataTableHeader">photoTitolo:</th>
<td class="WADADataTableCell"><?php echo($row_WADAtblPhotos['photoTitolo']); ?></td>
</tr>
<tr>
<th class="WADADataTableHeader">photoTitle:</th>
<td class="WADADataTableCell"><?php echo($row_WADAtblPhotos['photoTitle']); ?></td>
</tr>
<tr>
<th class="WADADataTableHeader">photoDescr:</th>
<td class="WADADataTableCell"><?php echo($row_WADAtblPhotos['photoDescr']); ?></td>
</tr>
<tr>
<th class="WADADataTableHeader">photoDesceng:</th>
<td class="WADADataTableCell"><?php echo($row_WADAtblPhotos['photoDesceng']); ?></td>
</tr>
<tr>
<th class="WADADataTableHeader">photoLocation:</th>
<td class="WADADataTableCell"><img src="foto/thumb/<?php echo $row_WADAtblPhotos['photoLocation']; ?>" /></td>
</tr>
<tr>
<th class="WADADataTableHeader">photoThum:</th>
<td class="WADADataTableCell"><?php echo($row_WADAtblPhotos['photoThum']); ?></td>
</tr>
<tr>
<th class="WADADataTableHeader">albumID:</th>
<td class="WADADataTableCell"><?php echo($row_WADAtblPhotos['albumID']); ?></td>
</tr>
</table>
<div class="WADAHorizLine"><img src="WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
<form action="" method="post" name="WADADeleteForm" id="WADADeleteForm">
<div class="WADAButtonRow">
<table class="WADADataNavButtons" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="WADADataNavButtonCell" nowrap="nowrap"><a href="tblPhotos_Update.php?photoID=<?php echo(rawurlencode($row_WADAtblPhotos['photoID'])); ?>" title="Update"><img border="0" name="Update" id="Update" alt="Update" src="WA_DataAssist/images/Pacifica/Refined_update.gif" /></a></td>
<td class="WADADataNavButtonCell" nowrap="nowrap"><input type="image" name="Delete" id="Delete" value="Delete" alt="Delete" src="WA_DataAssist/images/Pacifica/Refined_delete.gif" />
<input type="hidden" name="WADADeleteRecordID" id="WADADeleteRecordID" value="<?php echo($row_WADAtblPhotos['photoID']); ?>" /></td>
<td class="WADADataNavButtonCell" nowrap="nowrap"><a href="tblPhotos_Results.php" title="Results"><img border="0" name="Results" id="Results" alt="Results" src="WA_DataAssist/images/Pacifica/Refined_results.gif" /></a></td>
</tr>
</table>
</div>
</form>
</div>
<?php } // Show if recordset not empty ?>
<?php if ($totalRows_WADAtblPhotos == 0) { // Show if recordset empty ?>
<div class="WADANoResults">
<div class="WADANoResultsMessage">No record found.</div>
</div>
<div class="WADAHorizLine"><img src="WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
<div class="WADADetailsLinkArea">
<div class="WADADataNavButtonCell"><a href="tblPhotos_Results.php" title="Results"><img border="0" name="Results1" id="Results1" alt="Results" src="WA_DataAssist/images/Pacifica/Refined_results.gif" /></a></div>
</div>
<div class="WADAHorizLine"><img src="WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
<?php } // Show if recordset empty ?>
</div>
</body>
</html>
<?php
mysql_free_result($WADAtblPhotos);
?>
It supposes to show me a 100x100 thumb in the "photo location" field....
Thanks again