Posts by Eloi Martins • 71 points
7 posts
-
0
votes0
answers15
viewsQ: Access value within component tag
In my component I’m trying to take the value inside the tag of this same component to display it in the html of it, however, this component is the main component of my application, What I’m wanting…
-
-1
votes2
answers129
viewsA: Name as number in Array foreach
Why not create a table with the status? So, in the future if you need to change a status or even include a new one, just include it in your BD. Without using the database the best option is to rray.…
-
1
votes2
answers906
viewsA: How to avoid user logout when closing your browser with PHP?
Putting out a cookie. In such cases I place the cookie with any value (usually use uniqid) and saved in the database with the guy’s IP, so I do not run the risk. Every time it opens I check if the…
-
0
votes1
answer100
viewsA: Limit the number of requests in the query
Some details I noticed: 1) I have not seen what the function select_is_vip does, but because you no longer keep if the user is vip here: 'username' => $select_data[0]->username, 'is_vip' =>…
-
1
votes3
answers385
viewsA: The same variable repeats several times in the while
I’m not sure about your table structure, but you can solve this by putting a distinct after the select: $sqlProjetos="select DISTINCT P.codigo_PROJETO, P.nome_PROJETO from projetos P, usuarios U,…
-
3
votes1
answer304
viewsQ: jQuery perform a single action (method) for multiple elements
I have a form where an action can be executed several times by different elements, I wonder if you have how to put everything in a single call. For example: $("#campo_01").change(function(){…
jqueryasked Eloi Martins 71 -
2
votes4
answers732
viewsA: How to create a function to scroll through a dynamically created PHP page and change certain text
Dear Gustavox, see if this would help you: $texto1 = file_get_contents('texto1.php'); echo str_replace('O Cliente','A Cliente',$texto1); You can even change str_replace and create your own function.…
phpanswered Eloi Martins 71