L

웹상에서 DB 업데이트

웹상에서 디비 업데이트를 조건문 형식으로 할려고 하는데 업데이트가 안되는 데 이유를 아시는 분은 리플 부탁드립니다.

1번 화일
<table border=0 class=st_borderb cellspacing=1 bordercolordark=white bordercolorlight=black width=100%>
<tr><td >
<form method=post action=./?doc=wonbi_ok3.php onsubmit="return clip_check_submit(this)">
조건c: <input type=text name='ifc' value='<?=$ifc?>' size=8 maxlength=40> 가
조건d: <input type=text name='ifd' value='<?=$ifd?>' size=8 maxlength=40> 인 조건을 만족할때 <br>
조건a: <input type=text name='ifa' value='<?=$ifa?>' size=8 maxlength=40> 를
조건b: <input type=text name='ifb' value='<?=$ifb?>' size=8 maxlength=40> 로 일괄적으로 바꾼다

로 모두 바꾼다

<input type="submit" name="submit" value="등록">
</form>
</td></tr></table>

2번 업데이트화일

$sql = " update 2004_wb set
'$ifa' = '$ifb'
where '$ifc' = '$ifd' ";
mysql_query($sql);


echo"<meta http-equiv='refresh' content='0;URL=./?doc=wonbi_imsi.php'>";

감사합니다.
|

댓글 1개

어떻게 안되는지?
에러메세지가 어떻게 나오는지?
작업하셔서 올린 사이트의 작업링크URL이라도 알려주셔야 할듯하군요.

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기
🐛 버그신고