php - how to make "likes button"? -
what is, place button below user posting user can press. once pressed increment value in database table. problem have no idea how make base on query show posting. below table name , field have :
user
: id_user, username
posting
: id_post, id_user, content
like
: id_like, id_user, id_post
and below query show posting :
$query=$dbc->query("select user.username, posting.content posting inner join user on user.id_user = posting.id_user id_post='$_get[id]'"); $array= $query->fetch_array()
Comments
Post a Comment