jQuery
document.getElementById()
$.ajax() 有包好的函數
依照回覆數改顏色 SELECT count(mid) FROM table WHERE mid = ? param()
class
if rs['reply_count'] >5&&<10 class = "blue" else if else
留言分類 select value
checkbox input type = "checkbox" name "cate" id =""
按讚一次
|id |mid | who | 流水號 |留言like|user id | 如果有按過某則留言的like就會記錄有誰按某則留言讚
select *from whoLike where mid = 5 AND who = 10 select *from Like where mid = 5 回傳如果是空的代表沒按過讚 因此可以判斷這個user是否有按過這則留言讚