Posts by Guilherme Lagemann • 71 points
3 posts
-
1
votes2
answers62
viewsA: How can I set my variable "u"?
<?php //... require_once 'CLASSES/Usuario.php'; $u = new Usuario(); //... ?> <html> ... </html> Make sure that in the User.php class you really have it class name Usuario{...…
-
1
votes2
answers971
viewsA: How to take the value of a php variable and pass in a java script input
If you’re already getting the value of the PHP variable by loading the page, and you want to put its value in an HTML input, you can do something like: <input type="text"…
-
2
votes1
answer185
viewsA: Convert string to Date time
You probably need to do something about it: <?php $a = "2018-09-12 23:32:49.0 America/Sao_Paulo (-03:00)"; $dt = new DateTime("2018-09-12 23:32:49"); echo $dt->format('Y-m-d\TH:i:s.Z\Z'); Take…