Posts by Alesandro Alan • 66 points
6 posts
-
0
votes3
answers399
viewsA: How to select the last rows added in a mysql table
You can try it this way, I believe it will help you: SELECT idterreno, idusuario, data FROM sir_ter_conversa GROUP BY idterreno ORDER BY data DESC; mysql> SELECT id, idterreno, idusuario, data…
-
1
votes4
answers1373
viewsA: How to create an empty/null value in select dynamically?
Good, I made an adjustment so that I could test here and the way below is working perfectly, I hope the code below can help: <html> <head> <script…
-
0
votes1
answer58
viewsA: How to get the value of a button using $_REQUEST?
See if this example helps you: Create a test.php file and put in your hosting, in the example below I used localhost, you can change if you want: <html> <head> <meta…
phpanswered Alesandro Alan 66 -
1
votes1
answer37
viewsA: Error sending data to php with ajax in wordpress
From what I understand, you have a mistake in a if in your code PHP, as below: Error code if (!empty($name)) && (!empty($unid)) { echo 'true'; } else { echo 'false'; } Correct code:…
-
3
votes2
answers40
viewsA: Date format in php
<?php $time = strtotime('2016-2-26'); $data_formatada = date('d/m/Y',$time); echo $data_formatada; Will print: 26/02/2016
-
0
votes1
answer343
viewsA: How to perform an auto-update on a local web system?
A very simple way is: Storing your repository login on the server: cd c:\seu_repositorio\ git config credential.helper cache This command caches your credentials the next time you pull/push. Once…