도와주삼 ....플리스.. 정보
도와주삼 ....플리스..본문
function ch()
{
var txt1 = document.fwrite.ex00.value; ==>txt1의값은 1234
var txt2 = document.fwrite.ex01.value; ==>txt2의값은 5678
var ccc=txt1+"|"+txt2; ==> ccc의값은 1234|5678
var ccc=trim(ccc);
<?
$ccc=ccc;
echo "alert($ccc)"; ==>여기서확인해본결과 1234|5678 정상으로 출력됨
$row = sql_fetch(" select count(*) as cnt from $write_table where substring(wr_1,1,14)='$ccc'"); ==>여기가 문제임 .... 카운트가 안됨 ...
마지막 $ccc를 지우고
$row = sql_fetch(" select count(*) as cnt from $write_table where substring(wr_1,1,14)='1234|5678'"); ==> 이렇게 하면 카운트 됨 ...
뭐가 문제일까요????
{
var txt1 = document.fwrite.ex00.value; ==>txt1의값은 1234
var txt2 = document.fwrite.ex01.value; ==>txt2의값은 5678
var ccc=txt1+"|"+txt2; ==> ccc의값은 1234|5678
var ccc=trim(ccc);
<?
$ccc=ccc;
echo "alert($ccc)"; ==>여기서확인해본결과 1234|5678 정상으로 출력됨
$row = sql_fetch(" select count(*) as cnt from $write_table where substring(wr_1,1,14)='$ccc'"); ==>여기가 문제임 .... 카운트가 안됨 ...
마지막 $ccc를 지우고
$row = sql_fetch(" select count(*) as cnt from $write_table where substring(wr_1,1,14)='1234|5678'"); ==> 이렇게 하면 카운트 됨 ...
뭐가 문제일까요????
댓글 전체
'$ccc' 를 $ccc 로 바꿔서 해 보세요.