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

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -