Posts by Gabriel Filippi • 67 points
9 posts
-
1
votes0
answers13
viewsQ: How to link an id received via AJAX there is a related entity - Spring Boot MVC
When receiving data from POST (AJAX) I only receive the id from Category and validate the class Product the following error occurs: Resolved…
-
0
votes1
answer338
viewsQ: File Corrupted in Phpexcel
While generating Phpexcel database file, the file . xls is coming corrupted, follows picture What would be the mistake, I tried to find but I see nothing wrong. Follow codes. The following PHP code…
-
-1
votes1
answer39
viewsQ: Problem while uploading images
I have a form inside a table, and it will duplicate the lines as many times as I want, follows: <table class="table table-striped table-bordered table-hover" > <thead> <tr> <th…
-
0
votes2
answers865
viewsQ: Error when receiving php array in ajax
I have a script as following code: $("#submit").click(function(){ var dataString ={ nome : $("#nome").val(), status : $("#status").val(), id : $("#id").val() }; $.ajax({ type: "POST", url:…
-
0
votes3
answers4336
viewsA: Get value from all checkboxes marked
For: <script> var checkbox = document.getElementsByName('teste[]'); for($i=0; $i<$checkbox ; $i++){ checkbox[i].val(); } </script>…
-
1
votes1
answer122
viewsQ: Error adding" 0 " to a tinyint(1) field in the database
In my database in the users table, I have a field called status, whose type is tinyint(1). If the status is "0" the user is enabled (can access the site), if the status is "1", disabled. But when…
-
1
votes0
answers32
viewsQ: Problem with SELECT and bindParam()
When adding bindParam() after preparing the query, you are giving an error in execute, which says the following: Fatal error: Uncaught Error: Cannot pass Parameter 2 by Reference in C: xampp htdocs…
-
-1
votes1
answer82
viewsQ: Problem creating SQL INJECTION security
I have a PHP function where I pass the data to it and the same gives an UPDATE in the data. however I am doing security against SQL INJECTION, only that it is not working what would be the problem?…
-
1
votes1
answer209
viewsQ: Category modeling logic in an e-commerce
I am with a project to create an e-commerce, in which my doubt refers to the modeling of tables: Category(ROOT)>sub-categories>sub-categories of sub-category. As should be these tables, and a…