이미지출력 부분좀 봐주세요 정보
이미지출력 부분좀 봐주세요본문
아래에서 빨갛게 표시된부분인데요
업로드이미지가 있으면 이미지를 출력하고 이미지가 없으면 노이미지를 출력하라"인데
본이미지는 안나오고 노이미지만 나오네요?
이걸 해결좀해주실분안계신가요?
<?php
session_start();
include "../Libs/dbcon.php";
include "../Libs/phpclass.php";
include "../include/top.html";
$day_condition=make_end_day(); //마감일에 따라 리스트를 출력할것인가를 결정하는 변수
$scale1 = 30;//레코드를 보여주게 할 갯수
$start_q1 = Page_View1($cpage1, $scale1);
///////////////////
$que = "select no from arbeit_company where open = 'y' and (bannerexpiry >= curdate() or primaryexpiry>=curdate() or specialexpiry >= curdate() or hurryexpiry>=curdate()) $day_condition order by no desc";
$result = Jun_selectQuery($que);
$totalList = Jun_num_rowsQuery($result);
$employ_que = "select * from arbeit_company where open = 'y' and (bannerexpiry >= curdate() or primaryexpiry>=curdate() or specialexpiry >= curdate() or hurryexpiry>=curdate()) $day_condition order by no desc limit $start_q1,$scale1";
$employ_sel = Jun_selectQuery($employ_que);
업로드이미지가 있으면 이미지를 출력 없으면 노이미지 //////////////////////////////////////////////
$photo = (is_file("../PEG/".$emfat[photo]))?"<img src=../PEG/$emfat[photo] width=80 height=70>":"<img src=../images/default_detail2.gif>";
?>
<table width="930" border="0" align="center" cellpadding=0 cellspacing=0>
<tr>
<td width="175" valign="top"><? include "../include/left_employ.html"; ?></td>
<td valign="top">
<table cellpadding=0 cellspacing=0 border=0 width=728 align=right>
<tr><td height='40'><img src=../images/sub_top4.jpg></td></tr>
<tr><td>
<?// include "search_employ.html"?>
</td></tr>
<tr><td align=right> </td></tr>
<tr><td align=right>
</td>
</tr>
<tr><td height='2' bgcolor='4c4949'></td></tr>
<tr><td align=right>
<!--------리스트출력 --------->
<table width="728" border="0" cellpadding="0" cellspacing="0">
<tr align='center' bgcolor='f7f7f7' height='25'>
<td width="100"><fontclass='gray'>사 진</font></td>
<td width="100"><font class='gray'>등록인</font></td>
<td width="245"><font class='gray'>제목</font></td>
<td width='100'><font class='gray'>매매가</font></td>
<td width="103"><font class='gray'>수정일</font></td>
</tr>
<tr>
<td height='1' colspan='6' bgcolor='eeeeee' width="728">
<?php
while($employ_fat = Jun_fatch_arryQuery($employ_sel)){
$textcolor = ($employ_fat[textexpiry] && $employ_fat[textexpiry] >= "$today")?"<b><font color=C63413>":"";
$icon = ($employ_fat[iconexpiry1] && $employ_fat[iconexpiry1] >= "$today")?siteiconresult($employ_fat[iconexpiry2]):"";
$icon = ($icon)?" <img src=../images/$icon align=absmiddle>":"";
$endday = make_doday($employ_fat['endday1'],$employ_fat['endday2'],$employ_fat['endday3'],$employ_fat['endday4']);
$wdate= make_wday($employ_fat['wdate']);
?>
<tr>
<td height="30" style="padding:3333" width="94"> <p>노이미지나오는곳<?php echo $photo; ?></p>
</td>
<td height='30' width="100">
<a href="../employ/employ_detail.html?no=<?php echo $employ_fat[no];?>&uid=<?php echo $employ_fat[uid];?>">
<b><?php echo $employ_fat[companyname];?></b></a></td>
<td width="275"><a href="employ_detail.html?no=<?php echo $employ_fat[no];?>&uid=<?php echo $employ_fat[uid];?>">
<?=$textcolor?>
<?php echo $textcolor;?><?php echo Jun_wordcut($employ_fat[subject],40);?></a><?php echo $icon;?><br><?php echo ($employ_fat[jobcontent]);?></td>
<td width="100"><b><font color="#FF7700"><span style="font-size:9pt;"><?=($employ_fat['memnum'])? number_format($employ_fat['memnum']) :'미등록';?>만원<font></b></td>
<td align=center width="103"><?=$wdate?></td>
</tr>
<tr>
<td height="1" bgcolor="#EEEEEE" width="100"></td>
<td height=1 bgcolor=eeeeee colspan=6 width="631"></td></tr>
<?php } ?>
<tr>
<td colspan=8 align=center height=40>
<?php echo Page_View2($scale1, $cpage1, $totalList, 10, $Get_next);?>
</td>
</tr>
</table><!------------------------ 리스트끝 --------------------------->
업로드이미지가 있으면 이미지를 출력하고 이미지가 없으면 노이미지를 출력하라"인데
본이미지는 안나오고 노이미지만 나오네요?
이걸 해결좀해주실분안계신가요?
<?php
session_start();
include "../Libs/dbcon.php";
include "../Libs/phpclass.php";
include "../include/top.html";
$day_condition=make_end_day(); //마감일에 따라 리스트를 출력할것인가를 결정하는 변수
$scale1 = 30;//레코드를 보여주게 할 갯수
$start_q1 = Page_View1($cpage1, $scale1);
///////////////////
$que = "select no from arbeit_company where open = 'y' and (bannerexpiry >= curdate() or primaryexpiry>=curdate() or specialexpiry >= curdate() or hurryexpiry>=curdate()) $day_condition order by no desc";
$result = Jun_selectQuery($que);
$totalList = Jun_num_rowsQuery($result);
$employ_que = "select * from arbeit_company where open = 'y' and (bannerexpiry >= curdate() or primaryexpiry>=curdate() or specialexpiry >= curdate() or hurryexpiry>=curdate()) $day_condition order by no desc limit $start_q1,$scale1";
$employ_sel = Jun_selectQuery($employ_que);
업로드이미지가 있으면 이미지를 출력 없으면 노이미지 //////////////////////////////////////////////
$photo = (is_file("../PEG/".$emfat[photo]))?"<img src=../PEG/$emfat[photo] width=80 height=70>":"<img src=../images/default_detail2.gif>";
?>
<table width="930" border="0" align="center" cellpadding=0 cellspacing=0>
<tr>
<td width="175" valign="top"><? include "../include/left_employ.html"; ?></td>
<td valign="top">
<table cellpadding=0 cellspacing=0 border=0 width=728 align=right>
<tr><td height='40'><img src=../images/sub_top4.jpg></td></tr>
<tr><td>
<?// include "search_employ.html"?>
</td></tr>
<tr><td align=right> </td></tr>
<tr><td align=right>
</td>
</tr>
<tr><td height='2' bgcolor='4c4949'></td></tr>
<tr><td align=right>
<!--------리스트출력 --------->
<table width="728" border="0" cellpadding="0" cellspacing="0">
<tr align='center' bgcolor='f7f7f7' height='25'>
<td width="100"><fontclass='gray'>사 진</font></td>
<td width="100"><font class='gray'>등록인</font></td>
<td width="245"><font class='gray'>제목</font></td>
<td width='100'><font class='gray'>매매가</font></td>
<td width="103"><font class='gray'>수정일</font></td>
</tr>
<tr>
<td height='1' colspan='6' bgcolor='eeeeee' width="728">
<?php
while($employ_fat = Jun_fatch_arryQuery($employ_sel)){
$textcolor = ($employ_fat[textexpiry] && $employ_fat[textexpiry] >= "$today")?"<b><font color=C63413>":"";
$icon = ($employ_fat[iconexpiry1] && $employ_fat[iconexpiry1] >= "$today")?siteiconresult($employ_fat[iconexpiry2]):"";
$icon = ($icon)?" <img src=../images/$icon align=absmiddle>":"";
$endday = make_doday($employ_fat['endday1'],$employ_fat['endday2'],$employ_fat['endday3'],$employ_fat['endday4']);
$wdate= make_wday($employ_fat['wdate']);
?>
<tr>
<td height="30" style="padding:3333" width="94"> <p>노이미지나오는곳<?php echo $photo; ?></p>
</td>
<td height='30' width="100">
<a href="../employ/employ_detail.html?no=<?php echo $employ_fat[no];?>&uid=<?php echo $employ_fat[uid];?>">
<b><?php echo $employ_fat[companyname];?></b></a></td>
<td width="275"><a href="employ_detail.html?no=<?php echo $employ_fat[no];?>&uid=<?php echo $employ_fat[uid];?>">
<?=$textcolor?>
<?php echo $textcolor;?><?php echo Jun_wordcut($employ_fat[subject],40);?></a><?php echo $icon;?><br><?php echo ($employ_fat[jobcontent]);?></td>
<td width="100"><b><font color="#FF7700"><span style="font-size:9pt;"><?=($employ_fat['memnum'])? number_format($employ_fat['memnum']) :'미등록';?>만원<font></b></td>
<td align=center width="103"><?=$wdate?></td>
</tr>
<tr>
<td height="1" bgcolor="#EEEEEE" width="100"></td>
<td height=1 bgcolor=eeeeee colspan=6 width="631"></td></tr>
<?php } ?>
<tr>
<td colspan=8 align=center height=40>
<?php echo Page_View2($scale1, $cpage1, $totalList, 10, $Get_next);?>
</td>
</tr>
</table><!------------------------ 리스트끝 --------------------------->
댓글 전체

$emfat[photo] 변수이름이 잘못된 것 아닐까요?