Posts by Hugo Guitti • 117 points
9 posts
-
1
votes0
answers24
viewsQ: Sort object listing by relation Many-to-Many
OBJECTIVE: To order a list of eloquent entities based on a column of a Many-to-Many relationship. To create a system of favorite posts, I created a favorite_posts table that would be the link…
-
0
votes1
answer322
viewsQ: Form does not direct to another page when using MPDF
I have a form that when sent, executes an action that directs to another PHP page, where several scripts are executed and at the end is generated a PDF file to download. All scripts and PDF…
-
1
votes1
answer1372
viewsQ: Label positioning
I use Jquery Validate to validate inputs, but when validation fails, an error message label is created next to the input. My goal is to have this label shown below the input, without changing the…
-
2
votes3
answers3361
viewsA: How to convert 0 to null (Error inserting NULL into an INT field from a variable)
I figured out how to solve this problem! When null values are inserted from a variable PHP in a field INT of the database, the PHP converts null to "" (empty), which is a value STRING, then this…
-
1
votes3
answers3361
viewsQ: How to convert 0 to null (Error inserting NULL into an INT field from a variable)
I am editing this question to be more didactic for other members, since there are only publications addressing this situation outside the community en. I own a field INT property UNIQUE that may…
-
0
votes2
answers4815
viewsQ: Show and hide SELECT-based field
I developed a PHP code that queries a database table and inserts the values into one select in HTML. Once the user does not find the desired option within this select, he must select the option…
-
2
votes3
answers1179
viewsQ: Charset does not work in Javascript
I have the following Javascript function that issues a confirm with a message containing special characters. function cancelaCadastro(){ var cancelaCadastro = confirm(unescape("Você deseja cancelar…
-
1
votes1
answer75
viewsQ: Make a START TRANSACTION does not reserve the ID of the tables involved, in case of Insert failure
Hello fellow developers, I put together a script transaction to insert values into 2 different tables, or die at the end of each INSERT, so that the insertion of data does not occur in the second…
-
1
votes0
answers40
viewsQ: Doubt in the order of the fields of the table in case of foreign keys with less importance hierarchically
Hello dear programmers! I’m just a beginner in the world of programming and Stackoverflow and need to ask a question! I’m making some adjustments in a database I’m working on after finding great…