php변수를 자바스크립트로 넘기는문제.. 정보
php변수를 자바스크립트로 넘기는문제..본문
<script>
function test123(data123)
{
alert(data123);
}
</script>
<input type = "button" name = "ok_button" value = "확인" onclick = test123("<?=$datatest?>");>
alert경고창이 그냥 아무내용도없이 나옵니다.
데이터가 전달이 안되는거 같은데
\"<?=$datatest?>\" 이렇게 다 해봐도 안됩니다.ㅠㅠ
방법이있을까요?
ㅇ
function test123(data123)
{
alert(data123);
}
</script>
<input type = "button" name = "ok_button" value = "확인" onclick = test123("<?=$datatest?>");>
alert경고창이 그냥 아무내용도없이 나옵니다.
데이터가 전달이 안되는거 같은데
\"<?=$datatest?>\" 이렇게 다 해봐도 안됩니다.ㅠㅠ
방법이있을까요?
ㅇ
Fatal error: Uncaught TypeError: mysqli_fetch_assoc(): Argument #1 ($result) must be of type mysqli_result, null given in /home/kagla/new-sir/old/lib/common.lib.php:2339 Stack trace: #0 /home/kagla/new-sir/old/lib/common.lib.php(2339): mysqli_fetch_assoc() #1 /home/kagla/new-sir/old/skin/board/v16/view.skin.php(795): sql_fetch_array() #2 /home/kagla/new-sir/old/bbs/view.php(403): include_once('...') #3 /home/kagla/new-sir/old/bbs/board.php(300): include_once('...') #4 {main} thrown in /home/kagla/new-sir/old/lib/common.lib.php on line 2339