Posts by Angel • 781 points
7 posts
-
0
votes1
answer54
viewsQ: GET method getting NULL
GET METHOD GETTING NULL why? Testing in the browser: [email protected]&senha=1241 Code: session_start(); class Login { private $email; private $senha; private $db; public…
-
3
votes1
answer304
viewsQ: Validating php inputs
I need to show all errors in filling out the form first to then run FOR, but if using DIE for each IF will stop the script and will not show if there is any extra error, which way to do this?…
-
28
votes3
answers619
viewsQ: Timestamp limit January 19, 2038
How to fix this bug? echo date('c', mktime(1, 2, 3, 4, 5, 2038)); Upshot 1970-01-01T00:00:00+00:00
-
0
votes1
answer79
viewsQ: Monthly update for days 30 and 31 in a date range
What’s wrong with my formula to get the result down? I wish it had worked for all day 31 and I was correcting the month that there was no day 31. for ($i = 0 ; $i <= 12 ; $i++){ $tempo =…
-
11
votes1
answer310
viewsQ: How to make a counter with zero left
I need to print values like this, with zeros on the left 00001 00002 00003 for($i = 00001; $i < 10000; $i++){ validar($i); echo $i."\n\r"; }…
-
18
votes4
answers12892
viewsQ: How to convert float number to spellnumber in PHP?
Is there any native function, or other practical way, to get a number on float and convert to full number? Example: //input: 2.000,00 //output: dois mil…
-
2
votes2
answers216
viewsQ: jquery mascara formulario
I am trying to validate the form field using jquery, if the size is larger than Cpf number it put the cnpj mask in that same field var tamanho = $('.cpfcnpj').length; if (tamanho == 11){…