Posts by Francis Vagner da Luz • 461 points
60 posts
-
1
votes1
answer40
viewsQ: Permission in PHP
I’m limiting the amount of posts a user posts on a service so I created the function: function limite($conexao, $id) { $query = "select cont_post from usuarios where id={$id}"; return…
-
1
votes1
answer23
viewsQ: A logic in php
I am creating a system and I want to make sure that my user can only make five posts in the database, that is, on the site. What logic would I use to make this kind of permission? Grateful.
-
1
votes2
answers45
viewsQ: Update visits when opening the site
I am doing a function to change the count of visits on my site. The function is this: function visitas($conexao, $visita) { $query = "update visita set visitas= visitas + 1"; return…
-
4
votes3
answers5883
viewsQ: Disable button after click
I have a form that sends likes to my database by clicking the button. <form action="envia_curtir.php" method="post"> <button class="icones icone-polegares-para-cima"…
-
0
votes1
answer737
viewsQ: Implement a PHP and mysqli like button
I’m trying to implement a like button on a system I’m creating for testing. It already changes the value of the likes in the database, but I have to put the value in an input field that I put. So…
-
0
votes1
answer496
viewsQ: List Login User Post
I’m a beginner in PHP and I’m making a system where the user can register and register and post, it’s a blogging system. I built the user with SESSION and can display only his data. In my database I…
-
-2
votes1
answer67
viewsQ: Using the setInterval
How can I update a div using setInterval?
javascriptasked Francis Vagner da Luz 461 -
1
votes1
answer228
viewsQ: Searching user data for a Session
I’m making a site where several users can log in. I logged in for the login but I can’t find the other user data that is in the database. How can I do this? have the function $usuario =…
-
0
votes1
answer323
viewsQ: Searching for data via ajax
I have an API running local with the address http://localhost:8080/core-web/Rest/usuarios/79. The number 79 at the end is the user id. This API which is in JAVA returns me the following data: {…
-
0
votes2
answers121
viewsQ: Send date javascript format via ajax
I am trying to send data from a registration form via Ajax/javascript to a java service, but the database receives the data in date format and I do not know what I should do to convert to date, how…