<form name="frm">

<input type="text" name="newid" onBlur="method(document.frm.newid.value)"/> 

OR

<a href="#"><img src="" onclick="openWin(document.frm.newid.value);" /></a>

</form>

<script>

 function method('tt'){

alert(tt);

}

</script>


input의 name값을 넘기거나 불러올경우

document.frm.newid.value 값을 스크립트하면된다.

'progarm_old > [HTML-JS]' 카테고리의 다른 글

클릭시 value값 받기  (0) 2012.11.14
window. 메소드들  (0) 2012.10.11
confirm 클릭시 물음 확인&취소  (0) 2012.09.28
브라우저의 종류 구별  (0) 2012.08.27
HTML  (0) 2012.08.07

function test(){

if(confirm("로그인 하시겠습니까?"))

{

location.href="http://localhost/tes.html"; //링크

}

}

'progarm_old > [HTML-JS]' 카테고리의 다른 글

window. 메소드들  (0) 2012.10.11
input name값 받기  (0) 2012.10.02
브라우저의 종류 구별  (0) 2012.08.27
HTML  (0) 2012.08.07
EditPlus 단축키 모음  (0) 2012.08.02

The specified external location already exists. If a project is created in this location, the wizard will automatically try to detect existing sources and configure the build path appropriately

지정된 외부 위치는 이미 존재합니다. 프로젝트가이 위치에 생성되어있는 경우, 마법사가 자동으로 기존의 소스를 검색하려고하고 빌드 경로를 적절하게 구성합니다

'progarm_old' 카테고리의 다른 글

aptana studio3  (0) 2013.02.14
파일변환프로그램wmv->mp4  (0) 2013.01.23
jQuery 프로그래밍 소스 다운로드  (0) 2012.06.21
*카티아* 시작  (0) 2011.09.30
*매트랩* plot란?  (0) 2010.04.19

ADODB.Field 오류 '800a0bcd'

BOF 또는 EOF가 참이거나, 현재 레코드를 삭제했습니다. 요청한 작업에 현재 레코드가 필요합니다.



위 문구는 db에서 내용을 찾을수 없어서 나온에러이다.

그래서 대책을 세워야한다.

극히 드문일이지만..예외가 있는법


if Dbrec.BOF or Dbrec.EOF then    //현재레코드가 비어있을경우

re = "/admn/sub01/list.asp"

  response.redirect re

end if 







'progarm_old > [ASP]' 카테고리의 다른 글

[asp] 대문자, 소문자 변환  (0) 2013.01.29
[asp] 자동이동  (0) 2012.11.07
[asp] 수정시 셀럭터의 값을 선택하기  (0) 2012.07.30
[asp] 셀렉트값 선택하기 노가다  (0) 2012.07.30
[asp] select 체크시 변화  (0) 2012.07.12

<?php
$sql 
= "insert ignore into sometable set num=10";
mysql_query($sql) or die();
echo 
mysql_affected_rows()."<br>";
echo 
mysql_insert_id()."<br><br>";

// same record, database is unique on 'num'
$sql = "insert ignore into sometable set num=10";
mysql_query($sql) or die();
echo 
mysql_affected_rows()."<br>";
echo 
mysql_insert_id()."<br><br>";
?>

would give:
1
116372

0
116373


출처 : PHP

+ Recent posts