Posts by Luciano Alves • 101 points
18 posts
-
0
votes3
answers133
viewsA: Create multiple dynamic Lis columns with flex-Direction: column; leaving the first child with width proportional to the number of columns
Well, from what I understand you want a container that has a maximum of 3 children per line you can do this using grid layout but can also use pure flex-box. below I will give an example of how to…
-
0
votes1
answer105
viewsA: Error while rejecting promise within call back
This way you can easily handle the error that comes from your asynchronous function easily using the Try catch. example: class File { constructor(filePath) { this.file = filePath } create() { return…
javascriptanswered Luciano Alves 101 -
1
votes1
answer53
viewsA: Return value from a PHP method
You can return the value of the connection and make queries from it. I’ll give you an example in the code below. <?php class Database { private $hostname; private $username; private $password;…
-
0
votes1
answer229
viewsA: Error using Require and Xports
You wrote the code correctly maybe the problem is when finding the file in the directories. you should use . / for the same directory you must use .. / to return a directory from the current one you…
javascriptanswered Luciano Alves 101 -
0
votes1
answer59
viewsA: Enable and disable action by clicking on JS
You can store the values in variables. Suppose the initial state is false, on the first click it changes the state to true and updates the rate variable to 2.5 but it can be dynamic a value that the…
-
0
votes1
answer55
viewsA: PHP Notice: Undefined variable: Conn in C: Users Lucas php_Server DB manager.php on line 7
The error was caused by a flaw in your code writing, you eventually forgot to put public in the build function and the variable used in getConn is with undefined value so it caused the error, if you…
-
0
votes2
answers59
viewsA: How to create a height div with a prescribed value that decreases when redirecting the screen
I think you need to use another property to measure the screen in such cases is quite using vh or be viewport height (device screen height); example of how to use .header { background: #000; color:…
-
1
votes2
answers334
viewsA: Authenticate user and password from another page
You can do this by using javascript’s own fetch or opting for lib as Xios. it’s not very difficult; This is the HTML <form method="POST"> <input type="email" name="email" id="email"…
-
1
votes3
answers776
viewsA: Use of length to count concatenated strings
You won’t get it that way because it needs to concatenate strings first. for you to use the length. that way your code will work function tamanhoNomeCompleto(nome, sobrenome) { return (nome + ' ' +…
-
0
votes1
answer24
viewsA: How to recover the value of a select option in Adonisjs?
You cannot use the name attribute in the option to be able to solve your problem you must enter only one name and that name must be in the parent or select.
-
0
votes3
answers113
viewsA: Background CSS/HTML
You can use the background-Attachment: Fixed; in some cases you can occupy all screen but the image is fixed.
-
0
votes1
answer183
viewsA: My ajax in safari browser does not work
Don’t use it that way, learn how to use the fetch API Here the Link for documentation: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch or you can use a lib called Axios.…
-
1
votes1
answer665
viewsA: How to browse a list of javascript objects?
There are several ways depends on what you want? as information if you want to filter by some value if you want to multiply. the first cases are const clients = [ { id: 1, nome: 'Kushter 1' }, { id:…
-
0
votes2
answers79
viewsA: Error with bind_param() with mysql PDO connection
I think you may have been mistaken the bind_param is only used when you make connection to the database using new Mysqli or mysqli_connect you can check here…
-
0
votes3
answers291
viewsA: Javascript character limit to full stop
You need to count how many characters this phrase has after you use the substr function that to subtract a string tell from which house it should start and which one it should end in. as in the…
-
0
votes1
answer93
viewsA: Insert does not work
The best way to use PDO is not like this, use the bindValue or bindParam. I’ll leave an example using bindValue $conexao = new PDO('mysql:host=localhost;dbname=stackoverflow', 'root', ''); $usuario…
-
0
votes1
answer1338
viewsA: mysql - Warning : mysqli_connect (): (HY000 / 1045)
Use the new Mysqli class in simple PHP. $Connection = new mysqli($servername,$username,$password, $database); you can consult the documentation to learn how to use it. here:…
-
0
votes4
answers771
viewsA: Align button to the right side of select
You can use the bootstrap class . d-flex I’ll leave the example below. Most likely to solve your problem. <div class="form-group d-flex"> <label class="col-md-4 control-label"…
bootstrap-3answered Luciano Alves 101