![](/img/trans.png)
[英]How can i use MsSQL Where CONTAINS inside a php query with double quotes?
[英]How can use JavaScript variable in mssql query
<script language="javascript">
var rowcode=0;
function myclick(id)
{
if (rowcode!=0){
document.getElementById(rowcode).style.background="";
rowcode=id;
document.getElementById(id).style.background="yellow";
}
}
</script>
<a onClick="ShowDiv('<?php $result=Select("select * from CourseTeacher where lessonID IN(select lessonID from Lesson where place IN(select place from Place where id= ))");
我不知道如何將rowcode的值設置為id?
您必須為此使用Ajax。 通過ajax獲取“ rowcode”的值,然后在sql查詢中使用!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.