Posts by Thiago Freitas • 64 points
6 posts
-
1
votes1
answer160
viewsA: Line breaking
I believe the problem is in the view. Textarea sends break line with \n and html does not read it. Try changing your string to <br />, something like that: var str = 'olá\nEste é um teste de…
-
-1
votes2
answers103
viewsA: CALCULATION USING FUNCTION WITHIN FUNCTION - JAVASCRIPT
Only one little detail was missing to work, the Return inside the method calculo var n1 = prompt('Digite o primeiro número:') var n2 = prompt('Digite o segundo número:') n1 = parseInt(n1) n2 =…
-
0
votes2
answers152
viewsA: Error loading CSS file, cannot find directory
Your file layout.nkj this in site/views when you return a directory, consequently you will work inside the directory site, then let’s say the .. would be the index site and to reach the about.css…
-
0
votes2
answers55
viewsA: Even without giving errors, the information is not saved in the database
I’m finding the class statement odd. Starting with the variable $pdo, this is a class attribute and also a global variable :/ my suggestion is to rewrite the class in this way to avoid problem:…
-
0
votes3
answers85
viewsA: Place one array inside another
I think what you’re looking for is this. Remember that the array_merge has no reference to the array passed, this method has the return with the merged array.…
-
1
votes3
answers159
viewsA: Error in php/mysql register
You can validate if it was registered and if the check is false collect the mysql error. $cadastro = mysqli_query($connect,"INSERT INTO Usuarios (user, email, senha, birth, cadastro) VALUES…