Posts by Vítor Sá • 205 points
7 posts
-
0
votes1
answer580
viewsQ: How to generate code in an HTML form that does not yet exist
I have an HTML form with a "Reference Code" field in which gives the user the possibility to enter a code for a product in question that will be later saved in the BD. As this field has to be unique…
-
4
votes1
answer1001
viewsQ: Do not allow insertion of a date after another date already inserted
I have an HTML form in which I give the user the possibility to enter a start date and an end date and, of course, I do not want the end date to be earlier than the start date. The inputs for the…
-
5
votes2
answers871
viewsA: "java.lang.Nullpointerexception" error in Java
You’re not even showing what makes the getTrabalhoFinal() method. To be giving this error is because the instances you want to show are not being created, that is, the values returned by the…
-
2
votes2
answers1825
views -
0
votes2
answers281
viewsA: My program gives error when the array value is null
I don’t know if that can be, but there is a JSON method to check if the value is NULL. The method is isNull(); For example: if(jsonObject.isNull("parentId")){ jsonObject.put("parentId", 0); }…
-
3
votes1
answer52
viewsA: Where to put the Model code in php
Assuming that this sql/method would check "is there a category in the post?" this same sql/method would be in the Post class following the IE (information Expert) standard - whoever has/knows the…
-
3
votes1
answer342
viewsQ: PHP error: "Can’t use Function Return value in write context"
This error is coming to me and I’m not getting why. The line of code is as follows:: $matrix(0, $key)=$quantidade['id_product']; The complete function is as follows: public function…