묻고답하기
홈페이지에서 searching이 안돼요
2010.06.30 13:22
안녕하세요
홈페이지에 관련되서 문외한이라 간절하게 답변 부탁드립니다ㅠㅠ
홈페이지에서 카테고리때문에 소스를 건들었는데....
그다음부턴 searching 기능 아예 안돼고 있어요 search을 하면 이런 문구가 뜹니다..
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/hosting_users/webor_smtech/www/t_search.php on line 139
딱히 뭘 바꾸거나 그런것도 아닌데.. 갑자기 이래서요..
이것이 '게시판 상단에 출력할 내용' 에 적은 것입니다.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title>Welcome to SM Tech Korea</title>
<style type="text/css">
<!--
body {
background-image: url(../img/sub_back.jpg)undefined;
background-repeat: repeat;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<link href="../style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="126" align="center"><!-- #BeginLibraryItem "/Library/sub_top.lbi" --><table width="910" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="126"><img src="../img/sub_top.jpg" width="910" height="126" border="0" usemap="#Map" /></td>
</tr>
</table>
<map name="Map" id="Map">
<area shape="rect" coords="21,82,212,125" href="../index.php" />
<area shape="rect" coords="335,98,426,120" href="../company_01.html" />
<area shape="rect" coords="491,98,602,121" href="../equip.html" />
<area shape="rect" coords="661,97,719,121" href="http://smtechkorea.com/bbs/zboard.php?id=03_01" />
<area shape="rect" coords="771,96,844,120" href="http://smtechkorea.com/bbs/zboard.php?id=qna" />
<area shape="rect" coords="807,65,854,83" href="../index.php" />
<area shape="rect" coords="860,64,905,85" href="mailto:bjlee@smtechkorea.com" />
</map><!-- #EndLibraryItem --></td>
</tr>
<tr>
<td height="168" align="center"><img src="../img/parts_img.jpg" width="910" height="168" /></td>
</tr>
<tr>
<td align="center"><table width="910" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="209" valign="top"><table width="209" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3"><img src="../img/parts_title.jpg" width="209" height="80" /></td>
</tr>
<tr>
<td width="27"><img src="../img/submenu_left.jpg" width="27" height="286" /></td>
<td width="155" valign="top" bgcolor="#FFFFFF"><!-- #BeginLibraryItem "/Library/submenu_parts.lbi" -->
<table width="155" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="23" align="right" valign="bottom"><a href="http://smtechkorea.com/bbs/zboard.php?id=03_13" class="submenu">AMAT</a></td>
</tr>
<tr>
<td height="1" bgcolor="#eae2de"></td>
</tr>
<tr>
<td height="23" align="right" valign="bottom"><a href="http://smtechkorea.com/bbs/zboard.php?id=03_01" class="submenu">CHAMBER</a></td>
</tr>
<tr>
<td height="1" bgcolor="#eae2de"></td>
</tr>
<tr>
<td height="23" align="right" valign="bottom"><a href="http://smtechkorea.com/bbs/zboard.php?id=03_02" class="submenu">GENERATOR</a></td>
</tr>
<tr>
<td height="1" bgcolor="#eae2de"></td>
</tr>
<tr>
<td height="23" align="right" valign="bottom"><a href="http://smtechkorea.com/bbs/zboard.php?id=03_06" class="submenu">PUMP</a></td>
</tr>
<tr>
<td height="1" bgcolor="#eae2de"></td>
</tr>
<tr>
<td height="23" align="right" valign="bottom"><a href="http://smtechkorea.com/bbs/zboard.php?id=03_14" class="submenu">ROBOT</a></td>
</tr>
<tr>
<td height="1" bgcolor="#eae2de"></td>
</tr>
<tr>
<td height="23" align="right" valign="bottom"><a href="http://smtechkorea.com/bbs/zboard.php?id=03_07" class="submenu">VALVE</a></td>
</tr>
<tr>
<td height="1" bgcolor="#eae2de"></td>
</tr>
<tr>
<td height="23" align="right" valign="bottom"><a href="http://smtechkorea.com/bbs/zboard.php?id=03_12" class="submenu">CHILLER</a></td>
</tr>
<tr>
<td height="1" bgcolor="#eae2de"></td>
</tr>
<tr>
<td height="23" align="right" valign="bottom"><a href="http://smtechkorea.com/bbs/zboard.php?id=03_11" class="submenu">ETC</a></td>
</tr>
<tr>
<td height="1" bgcolor="#eae2de"></td>
</tr>
</table>
<!-- #EndLibraryItem --></td>
<td width="27"><img src="../img/submenu_right.jpg" width="27" height="286" /></td>
</tr>
<tr>
<td colspan="3"><img src="../img/submenu_bottom.jpg" width="209" height="19" /></td>
</tr>
<!------------------ 검색추가 -------------------->
<tr>
<td colspan="3" height=40 align="center">
<SCRIPT LANGUAGE="JavaScript">
function ck_nd_search(f){
if(/^['"!*?]+/i.test(f.search_txt.value)){
alert('특수문자로 검색을 시작하실수 없습니다.');
f.search_txt.value="";
f.search_txt.focus();
return false;
}
if(f.search_txt.value<1){
alert('검색어를 입력해 주세요');
f.search_txt.focus();
return false;
}
}
</SCRIPT>
<form name='t_search_left' action='/t_search.php' method='post' onsubmit='return ck_nd_search(this)'>
<table width="200px" border="0" cellspacing="1" cellpadding="0">
<tr>
<td align=right>
<input type='text' name='search_txt' style="padding-left:7px;border:none;background:#9a9249;padding:3px;width:150px;height:22px;color:#ffffff">
</td>
<td>
<input type='image' src='/img/search2.gif' alt='search'><br/>
</td>
</tr>
</table>
</form>
</td>
</tr>
<!------------------ 검색추가끝 -------------------->
</table></td>
<td width="701" valign="top"><table width="701" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3"><img src="../img/parts_subtitle_11.jpg" width="701" height="80" /></td>
</tr>
<tr>
<td width="50" background="../img/con_left.gif"> </td>
<td width="608" valign="top" bgcolor="#FFFFFF"><table width="608" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../img/company_minititle.gif" width="608" height="114" /></td>
</tr>
<tr>
<td><div align="center">
<body onContextmenu="return false">
<onContextmenu="return false">
<body onSelectstart="return false">
답변 부탁드립니다~~~~~~~~~