sun's longitude:300 38 5.96 
· 자유게시판 · 묻고답하기 · 알파문서 · RPMS list
· 사용자문서 · 팁/FAQ모음 · 리눅스Links · 자료실
· 서버정보 · 운영자 · Books/FAQ · FreeBSD
/board/read.php:소스보기  

질문과 답변 게시판입니다.

현재 실시간으로 이곳 서버의 설정파일(몇개)를 보여주고 있습니다.
서버의 설정내용에 관한 질문은 먼저 이곳 서버의 설정내용을 참고하시길 바랍니다.

[*** 쓰기 금지단어 패턴 ***]
글 본문 중간에 업로드할 이미지를 추가하는 방법 : @@이미지이름@@
ex) @@foo.gif@@
493 번 글: php에 관한 문의입니다.
글쓴이: 변기환 [홈페이지] 글쓴날: 2001년 01월 16일 12:17:27 화(오후) 조회: 2595
안녕하세요.

제가 소핑몰 소스를 분석중인데 초보중에 쌩초보라서 
몇가지 해결을 못하는게 있어서 질문을 드립니다.

1. 특정 상품을 추가 할시 예를 들어 신상품이라고 등록을하면
   메인화면에 해당 상품을 출력을 하고 싶은데
 
   현재 출력은 됩니다. 어떻게 해서........................

  
   그런데 새로로 출력이 되걸랑요. 이를 가로로 출력을
하고싶은데
   좀길지만 아래에 해당 소스를 첨부하겠습니다.

   살펴보시고 도움 주시기 바랍니다.^^

###################################################################

<table border="0" cellpadding="2" height="29">
<tr>
<td height="177" align="center" width="4">
<?
include "dbconn.inc";
$sql="select * from $tbProduct where FavorYN='y' order by ProductID
DESC";
$result=mysql_query($sql,$dbconn);
$row=mysql_num_rows($result);
$Record=3;
if($Record > $row){
        $Record=$row;
}
for($i=0; $i<$Record; $i++){
        $BPartID=mysql_result($result,$i,"PartID");
        $ProductID=mysql_result($result,$i,"ProductID");
        $simage=mysql_result($result,$i,"Simage");
        $Name=mysql_result($result,$i,"ProductName");
        $Price=mysql_result($result,$i,"ProductPrice");
        $Office=mysql_result($result,$i,"Office");
?></center>   
</td>   
        <td width="266" height="177">

<table border="0" cellpadding="2">
<tr>       
<td width="154" height="108"> 
<p align="center"><a
href='shop/product_list_view.html?ProductID=<?echo("$ProductID");?>'><img
border="0" src='files/<?echo("$simage");?>'></a></p>
</td>
</tr>
<tr>       
<td width="154" height="14"> 
<div align="center">     
<center>     
<table border="0" bordercolordark="#dbeeee"
bordercolorlight="#eeeeee" cellpadding="1"
cellspacing="1" width="98%">     
<tr>    
<td width="43%">    
<p align="center"><?echo("$Name");?></td>        
</form>
</tr>     
</table>
                    </center>
                </div>
</td>
</tr>
<tr>       
<td width="154" height="23"> 
<div align="center">     
<center>     
<table border="0" bordercolordark="#dbeeee"
bordercolorlight="#eeeeee" cellpadding="0"
cellspacing="0" width="98%">     
<tr>    
<td width="30%">        
<p align="center"><font color="red">가격
 <?echo(number_format("$Price"));?></font> 원</td>      
</form>
</tr>     
</table>
                    </center>
                </div>
</td>
</tr>
<?
}
?>
</table>
        </td>
</tr>
</table>

###################################################################

이걸보실려면 http://httpd.choonyang.co.kr/favor.html 입니다.

일단 이것만 해결 해주시면 또 모르는 문제는 열씸히
묻겠습니다.

 
이전글 : Re: 산이님 .... 등등
다음글 : Re: php에 관한 문의입니다.  
 from 211.48.175.252
JS(Redhands)Board 0.4 +@

Re: 산이님 .... 등등 Re: php에 관한 문의입니다.
인쇄용 


apache lighttpd linuxchannel.net 
Copyright 1997-2026. linuxchannel.net. All rights reserved.

Page loading: 0.02(server) + (network) + (browser) seconds