<table id= <%=var1%>>, the actual value of var1 must be used when calling
The same is true in JS
document.getElementById( <? echo $blogid; ?>);
The specific implementation method is to batch output id and then call id. Everyone can freely play it out, only unexpected things, nothing can be done .