Posts by Diego Henrique • 325 points
10 posts
-
0
votes1
answer259
viewsQ: Restriction error in relationship Onetomany Hibernate
I’m getting error in the Onetomany relationship when I try to persist an entity. Error: org.postgresql.util.PSQLException: ERROR: null value in column "book_url_id" violates not-null constraint…
-
0
votes2
answers1406
viewsA: Creating a button with ajax and making it run php
I tried to better organize the structure of your files so you can understand exactly how the use of ajax works. Cart.php The first thing to do is to add some references to your action buttons in the…
-
3
votes2
answers3899
viewsQ: Picking text between two words with regex
I would like a light for my problem. My goal is to pick up the list below by dividing the blocks between the words LOREM and LOREM but I don’t want to pick up the whole text that follows at the end…
-
2
votes1
answer387
viewsQ: Multi-line update SQL server 2008 + PHP
How I can do multi-line updates with PHP on sql server? I have a structure similar to that, but with many lines: ID nome vencimento 11 | Joao | 20/02/2014 12 | Arthur | 21/02/2014 13 | Ana |…
-
2
votes1
answer546
viewsQ: Random results in SQL queries without repeating (Scroll Infinity)
I’ve had this problem for a long time and I can’t fix it. I have a page with infinite scroll that returns some rows from the database, but the results most often repeat. I’m using the following…
-
4
votes4
answers3597
viewsQ: json returns null with special characters
Today I came across this mistake: When trying to encode an array for json, some values return null. I arrived at the solution before using the function json_encode() pass all strings to UTF-8 with…
-
4
votes2
answers142
viewsQ: Generate final HTML in PHP or JS?
What is the best way, the best performance, to generate the final HTML. Direct in server-side or receive the database data and generate the HTML in client-side? In the development of my current…
-
2
votes2
answers3352
viewsQ: Return the values of an array after a given key
I have an array with about 100 positions this way: [ { "1":{ "id":1262, "nome":"Fulano", "sobrenome":"de Tal" } }, { "2":{ "id":1263, "nome":"Beltrano", "sobrenome":"da Silva" } }, ... ] How do I…
-
0
votes2
answers97
viewsA: Small font - Phonegap
I don’t use the phonegap and I don’t know him deeply. But the problem of readability of sources on mobile and other mobile devices most of the time is the lack of meta tag: <meta…
-
1
votes2
answers674
viewsQ: Can you use a variable that’s inside the for?
For example. I am working with Heredoc and whenever I need to do a for, I have to close Heredoc to do the for then open the mentioned tag again. Is there any way to query a variable within the is…