我有一个带有投票脚本的div
图层,如何在行回显中打印出来?
SELECT `image`,`Name`,`item`, (`totalrate` / `nrrates`) AS `rank` FROM `rtgitems` WHERE item
REGEXP 'Total'
ORDER BY (`totalrate` / `nrrates`)
echo "<td align='center' width='200'>" . $row['Name'] . "</td>";
echo "<td align='center' width='200'>" . "<img src=\"{$row['image']}\">" . "</td>";
echo "<td align='center' width='200'>" . $row['rank'] . "</td>";
echo "<td align='center' width='200'>" . <div class="srtgs" id="$row['item']"></div> . "</td>";
变量srtgs
在头部的<script src="../ratingfiles/ratings.js" type="text/javascript"></script>
中调用
我错过了什么?
答案 0 :(得分:1)
你的div需要像文字一样回应,就像tds一样。
echo "<td align='center' width='200'><div class='srtgs' id=" . $row['item'] . "></div</td>";