Posts by BrunnoFdc • 369 points
9 posts
-
1
votes1
answer135
viewsA: Intellij Cannot resolves table "...."
That’s not really a mistake, it’s more of an intellij warning. If you use the Ultimate version, the IDE can connect to the database you use and (among other things) check if the names you pass in…
-
3
votes1
answer64
viewsA: How to display only the first user name in EJS
As indicated in the comment, here is a possible solution to the problem: We use the function split() to obtain an "array of names" from user.name and select the first of the "names" of that array…
-
2
votes1
answer54
viewsA: Access a key in json
If you are using lib request, the problem is that the function’s "body" parameter is a string, not a Javascript object. You need to turn it into an object before accessing the props of it. Try:…
-
2
votes1
answer72
viewsA: How do I make the React application scroll down if the content doesn’t fit on the screen?
In the CSS of the component Banner, you are setting the property overflow as hidden for all the elements of your page, not just for the component elements, and this is preventing scrolling. Try to…
-
1
votes1
answer277
viewsQ: Can you indicate me some package for Sublime Text that improves the auto complete?
Good evening guys. I was wondering if there is a package for Sublime Text that will improve the self-completion of it. I wish Sublime could access the PHP classes I included in my code and suggest…
-
0
votes1
answer34
viewsQ: Can you define the type of variables in the parameters of a method?
Just as it is done in various programming languages, such as Java, C# and many others, you have to define in PHP the type of variable that we want to be initialized in the parameters of a method?…
-
3
votes1
answer6718
viewsQ: Use str_replace to replace key variable values
Good evening folks! I’m trying to use the method str_replace() to replace a term within a variable, but is having no effect. foreach ($paginas as $pagina => $codigo) { if(!strcasecmp($atual,…
-
2
votes1
answer312
viewsA: Function with cookies in PHP
You can add a cookie to the user’s browser when they first access, and then check whether they already have such a cookie. //Primeiro, verificamos se o usuário já possui o cookie…
-
6
votes3
answers390
viewsQ: Is it possible to place objects in an Arraylist as soon as instantiated?
Doubt applies not only in one ArrayList, but in any kind of List. It is possible to add objects to ArrayList soon after we instantiate it, and without having to use the method add()? As can be done…