Posts by Matheus Henrique • 75 points
6 posts
-
1
votes1
answer44
viewsQ: Problem with css Animation called by a javascript function
I have a page index.html containing a <p id="valor"> Which is updated via a Websocket using javascript. Every time the server sends the message the function atualizar(valor) is called:…
-
1
votes0
answers135
viewsQ: How to configure the Slim 3 passthrough?
I’m trying to build a simple API for study with Slim Framework and Jwtauthentication. In case my path /auth returns a JSON containing the JWT token that will be used to access the other paths. But…
-
-2
votes1
answer102
viewsQ: Is there any way to reduce the if’s of my code?
function updateUser($usuario, $senha, $adm){ //Atualiza informações sobre o usuário $sql_query; $q_senha = ""; $q_adm = ""; $dot = ""; if(!empty($senha)){ $q_senha = "senha=md5('$senha')"; } if($adm…
-
2
votes1
answer103
viewsQ: How to make a Unique field for each Foreign key?
I am studying mysql and came across the following situation and would like to know if there is a solution structuring my tables to solve this. Assuming I have two tables; user (id, user, password)…
-
-1
votes1
answer54
viewsQ: How should I structure my database?
I am studying Mysql and have a user system. When the user logs into the account it is possible to create annotations. I imagine the right user table, but what about the notes? Should I create a…
-
3
votes1
answer164
viewsQ: Scrolling of Tiledmap
I’m trying to build a camera system for a game that I intend to do in pure javascript, but I can’t produce the effect correctly. If anyone can see and fix it or guide me to read some tutorial would…