I am not sure how I broke this, but I just checked this page and the image is NOT displaying.
Here is the current code<?php
$Parampostid_WADAtbl_post = "-1";
if (isset($_GET['postid'])) {
$Parampostid_WADAtbl_post = $_GET['postid'];
}
$ParamSessionpostid_WADAtbl_post = "-1";
if (isset($_SESSION['WADA_Insert_tbl_posts'])) {
$ParamSessionpostid_WADAtbl_post = $_SESSION['WADA_Insert_tbl_posts'];
}
$Parampostid2_WADAtbl_post = "-1";
if (isset($_GET['postid'])) {
$Parampostid2_WADAtbl_post = $_GET['postid'];
}
mysql_select_db($database_community, $community);
$query_WADAtbl_post = sprintf("SELECT tbl_posts.*, listadforms.formfile FROM tbl_posts left join listadforms on tbl_posts.ad_category = listadforms.formid WHERE postid = %s OR ( -1= %s AND postid= %s)", GetSQLValueString($Parampostid_WADAtbl_post, "int"),GetSQLValueString($Parampostid2_WADAtbl_post, "int"),GetSQLValueString($ParamSessionpostid_WADAtbl_post, "int"));
$WADAtbl_post = mysql_query($query_WADAtbl_post, $community) or die(mysql_error());
$row_WADAtbl_post = mysql_fetch_assoc($WADAtbl_post);
$totalRows_WADAtbl_post = mysql_num_rows($WADAtbl_post);
$Paramid_directory = "-1";
if (isset($_GET['id'])) {
$Paramid_directory = $_GET['postid'];
}
mysql_select_db($database_community, $community);
$query_directory = sprintf("SELECT logo_img FROM tbl_directorylistings WHERE %s=id", GetSQLValueString($Paramid_directory, "int"));
$directory = mysql_query($query_directory, $community) or die(mysql_error());
$row_directory = mysql_fetch_assoc($directory);
$totalRows_directory = mysql_num_rows($directory);
?>
Page - _p_detailNEW.php?postid=9187
This user does have a logo - Directory-Detail.php?id=4334 top left image is the logo