Posts by BrunoAgenor • 120 points
10 posts
-
-2
votes4
answers158
viewsA: printf function is not running after scanf method
Try to use fflush(stdin); before the scanf, this command will clear the input buffer, happens from scanf recognize the \n that you previously used on printf as the enter of the value but the…
canswered BrunoAgenor 120 -
0
votes1
answer45
viewsA: Mongo driver for php only works with mpm_prefork?
After finding my own question here while searching for the same answer, but now with a new server without users I plunged into the net searching for answers... I discovered it had nothing to do with…
-
2
votes1
answer47
viewsA: How to apply the Hover (Jquery) effect to a specific group of classes?
Use the selector this to reach only the element that suffers the event, and assigning the events to the element div father makes it easier to access the children through the function find.…
-
0
votes1
answer45
viewsQ: Mongo driver for php only works with mpm_prefork?
Seeking a better performance for my application I changed the MPM of apache of prefork for event, but when restarting apache with the new processing module the mongodb does not work, while accessing…
-
-1
votes3
answers2168
viewsA: Validate name field - Jquery
To limit the size use the attribute maxlength="30" tag input, to remove the spaces at the beginning and end of the string you better use a function trim on the server side or wherever you receive…
-
1
votes1
answer150
viewsA: Spinner with Sqlite
I believe that what you need to do is query the value in the database and set the selected item in the spinner, this can be done using the method setSelection(int position) If you want to set the…
androidanswered BrunoAgenor 120 -
2
votes1
answer110
viewsA: Send data to another page or send it to another page?
Sending to another script tends to make your code more organized, making it more viable for future editions. In the matter of speed the less redirects the faster it will be, but just one more…
phpanswered BrunoAgenor 120 -
1
votes0
answers61
viewsQ: Recognize date text in Brazilian format
Does anyone know any way to recognize text of Brazilian dates like, today, tomorrow, 30/04... on PHP using the function strtotime or in the Cakephp using CakeTime. I’m trying to get the same result…
-
1
votes1
answer994
viewsA: PDO sqlsrv is in phpinfo but does not work
Thank you very much to everyone who helped me here after recreating the folder /opt on the server (which by the way still not understood how it was deleted), and install again the drive that link…
-
1
votes1
answer994
viewsQ: PDO sqlsrv is in phpinfo but does not work
I’m trying to access an SQL Server server from another Ubuntu server 16.04 using PHP, I did the entire installation process of the drive informed by Microsoft’s own website and phpinfo is shown the…