 |
 |
 |
 |
|
>> Read No. 22434 article |
|
|
php 질문 같지도 않은 질문 한번 봐주세염.ㅜ.ㅜ
|
 |
 |
 |
 |

등록 2001-03-01 10:47:00
조회 2
이름 왕왕초보

|
 |
 |
안녕하세요.
입문한지 어~언 몇일 안된 왕초보입니다.
그저 어디서 소스가져다가 수정하는게 전부입니다(사실 소스봐도 암것도 모름)
제가 아래에 써놓는 소스는 회원 인증을 확인후 페이지에 표시 하기 위한 것입니다.
문제점1. php error line 36 이라는 형식의 에러가 계속 납니다. html 을 제가
집어 넣은 것인데 그렇게 하면 안되나요?
문제점2. 그전 문제점1이 생기기 전에 수정안한 원래것은 잘 작동이 됬었읍니다. 그런데
그 놈도 한가지 문제가 있엇는데 사용자 ID와 NAME 이 표현되는 쿠키가
작동이 되지 않았엇습니다. "김형진"("jiho") 형식으로 표시가 되어야 할것이
그냥 ""("") 이렇게 만 표현이 되었엇습니다.
제발 도와 주세여. 아는것ㄴ 없구 2일안에 해결은 해야 하구 불쌍한 초보입니다.
아래에 문제의 소스 붙여넣습니다. 참고로 쓸데없느 html의 내용들은 지우고 올립니다.
################ 여기서부터 얻어온 php 소스입니다.#########
<? include ('dbconn.inc'); ?>
<?
$Connection = mysql_connect ("localhost","$db_user","$db_password");
mysql_select_db ("$db_table", $Connection);
$query = "select * from member where id='$id' and passwd='$passwd' ";
$result = mysql_query($query);
if(!mysql_num_rows($result))
{
echo (" <script>
window.alert ('로그인 되지 않았습니다. ( 아이디와 비밀번호를 확인 하세요
)') history.go(-1)
</script>
");
} else {
$row = mysql_fetch_array($result);
$name = $row['name'];
$cyber = $row['cyber'];
$money = $row['money'];
SetCookie ("member_name", $name, time()+3600);
SetCookie ("UIDVar", $id , time()+3600);
$money = $money+50;
mysql_query("update member set money=$money where id = '$id'");
echo ("
##################여기서 부터 원래의 html을 지우고 제가 붙인 html 입니다.
<html>
<head>
<title>센트몰메인입니다</title>
</head>
<body bgcolor="#FFFFFF" topmargin="0">
<table width="689" cellpadding="0" cellspacing="0" border="0" align="center" height="35">
<tr>
<td height="35"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia
.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="770" height="90"> <param name=movie value=
"top.swf"> <param name=quality value=high>
<embed src="top.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Pro
d_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="770" height="90"> </embed>
</object>
<table width="770" border="0" cellspacing="0" cellpadding="0" background="../img/mtop.gif" align="center" height="71">
</table>
</td>
</tr>
</table>
<tr>
<td>
<table width="770" border="0" height="368" cellpadding="0" cellspacing="0" align="center">
<tr>
<td rowspan="3" height="38" width="351">
<form>
<table width='170' border='1' cellspacing='0' cellpadding='0' align='center' height="39">
<tr align='center' bgcolor="#CCFFCC">
<td class='gab' height='13'><font color='#0033CC'size='2'>★ 어서오십시요. 센트몰입니다.
★</font></td>
</tr>
<tr align='center'>
<td class='gab'> </td>
</tr>
<tr align='center'>
<td class='gab' height='51'>
<table width='189' border='1' cellspacing='0' cellpadding='0' vspace='0' hspace='0'>
<tr bgcolor='#999999'>
<td colspan='3'><img height='1' width='1' src='images/0.gif'></td>
</tr>
<tr>
<td bgcolor='#999999' width='1' height="52"><img height='1' width='1' src='images/0.gif'></td>
<td width='384' bgcolor='#F3F7FD' height="52">
<table border='1' cellspacing='0' cellpadding='2' align='center' width='172' height="23">
<tr>
<td height='27' colspan="2">
<div align='left'><b>'$member_name'('$UIDVar')</b><font color="#000066" size="2" face="돋
움">님 어서오세요.</font> <br>
<b><br>
<'$money'원></b><font color="#000066" size="2" face="돋움">의</font>
<font color="#000066" size="2" face="돋움">센트머니 적립 중</font><font color=
'#0033CC'size='2'> </font></div>
</td>
</tr>
<tr>
<td colspan='2' align='center'> </td>
</tr>
</table>
</td>
<td bgcolor='#999999' width='1' height="52"><img height='1' width='1' src='images/0.gif'></td>
</tr>
<tr bgcolor='#999999'>
<td colspan='3'><img height='1' width='1' src='images/0.gif'></td>
</tr>
</table>
</td>
</tr>
<tr align='center'>
<td class='gab' height='2' align='center'> </td>
</tr>
</table>
</form>
<font size="2" face="돋움" color="#000066"><br>
</td>
</tr>
<tr>
<td colspan="2" height="92"><font color="#339999" size="3">.................................................
...................................</font> <div align="left">
<p><font size="2" face="돋움" color="#FF0000"><b>Cellvic PDA</b></font><b><font size="2" face="돋움" color="#000066"
>는............</font></b><font size="2" face="돋움" color="#000066"> <br>
<br></div>
</td>
</tr>
<tr>
<td colspan="4" height="2">
<p align="center"><img src="img/banner.gif" width="468" height="60"><br>
</p>
<!-- #BeginLibraryItem "/Library/copyl.lbi" -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="7">
<tr bgcolor="#000066">
<td height="20">
<div align="center"><font size="2" color="#FFFFFF" face="돋움">Copyright (c)
2001 센트몰닷컴 Co.,Ltd. All rights Reserved. <a href="mailto:250 at centmall.com"><font color="#CCCC00">E
-mail</font></a> contact us</font> <font size="2" color="#FFFFFF" face="돋움"><font color="#FF0000">D</fon
t>esign by iips.</font></div></td></tr>
</table><!-- #EndLibraryItem -->
<p align="center"> </p>
</td>
</tr>
<tr>
<td colspan="4" height="7">
<p> </p>
</td>
</tr>
</table>
</td>
</tr>
</body>
</html>
");
}
?>
 | |
|
|
|
|
페이지로딩: [ 1.29 초 ]
작업시간: [ 0.8 초 ]
|
|
 |
 |
![[TOP]](/images/color///top.gif) 
|
 |
 |
 |
 |
|
|