Posts by Daniel Santos • 128 points
10 posts
-
0
votes3
answers1807
viewsA: How to do something asynchronous with jQuery, search in Mysql with PHP?
After a long time (I couldn’t remember this question anymore) I discovered with some searches on Google. It’s very simple: $.ajax({ type: "GET",//Tipo da requisicao, pode ser GET, POST, etc... data:…
-
0
votes1
answer44
viewsA: How to select rows that match one of the columns in different tables?
Okay, you should have given us the structure of the tables, so it seems to me you should look for something that is in more than two tables, see: A table with the games A table with the bet dice A…
-
1
votes3
answers51
viewsA: If logic with bool type and Object type
An object will always be true, so if you want to see if it exists use if(typeof nameDebject == "Undefined"){codigo}…
-
4
votes2
answers2079
viewsQ: How to get back to a point before merging into Github
Take a look at my commits chart: https://github.com/danieldspx/cni/network I took a dump here, I wanted to merge the Workspace branch with the master. The Workspace is the one that was more current,…
-
0
votes1
answer50
viewsA: Uncomplicated update
As far as I’m concerned, you just want to add one to the variable visits, so it would be: UPDATE table_name SET visitas = (visitas + 1) WHERE condicao
sql-updateanswered Daniel Santos 128 -
1
votes1
answer595
viewsA: Run function only once
Save to the database if it clicked or not. If you want it to never press the button is necessary to save in the database because cookies can be deleted, the user can access from another computer. In…
-
1
votes1
answer169
viewsA: Generate notification on the web platform every time a new form arrives
Dude if you want something in real time you should use Websockets, which is a TCP protocol that allows full-duplex communication. For this you should work with the protocol and the Websockets API to…
-
3
votes1
answer454
viewsQ: How to cancel an INSERT event on Trigger?
Hello, I created a Rigger that every time the user performs a sale is made the debit in the quantity of items, but if I do not take care the quantity can be negative because the user can sell more…
-
0
votes1
answer1076
viewsQ: How to search for values in a PHP file with jQuery - AJAX?
Guys I want to search a string in a PHP file called search.php I want to return a string to my index.php but I want to do this when calling the function try_it(), is there any way to do this with…
-
1
votes3
answers1807
viewsQ: How to do something asynchronous with jQuery, search in Mysql with PHP?
I’m having a lot of trouble with this part. I want to simply do a database search and move on to my main program, this without giving a refresh. I know how to do all part of PHP and Mysql, however…