Posts by Leandro • 459 points
37 posts
-
1
votes1
answer147
viewsQ: Creating a CSS card
Well, I’m trying to turn a table into cards when the site opens on a mobile device, but I don’t know much about CSS. I’m basing myself on this model, in my card turned only the data, but the header…
-
1
votes1
answer22
viewsQ: How to store notifications for performance?
Thinking of a system that at first is small and there is a possibility of a large growth in the flow, what would be the most intelligent/appropriate way to store notifications (a la facebook)? In .…
-
3
votes1
answer251
viewsQ: Error running Entity Framework
I am starting my studies in EF, following this tutorial, I made up to 22 min of the video, then when I will run: System.Typeinitializationexception: 'The 'System.Data.Entity.Internal.Appconfig' type…
-
1
votes1
answer560
viewsQ: Template parse errors (Angular CLI)
I’m studying Angular by doc, but when I arrived in Add HeroService.getHero(), the application gave refresh and presented the following error: Uncaught Error: Template parse errors: Can’t bind to…
-
1
votes1
answer180
viewsQ: Problem sending JSON by ajax to PHP
I’ve been trying to solve this problem for a couple of days, and I saw some questions from this site, but none of them solve the problem. I’m putting Ajax in the login of my TCC, but it will not, no…
-
0
votes1
answer37
viewsQ: Nav-Bar placing items inside the button
I started studying Bootstrap and am following a step by step w3c, Nav-bar items are entering inside the button, this is expected when the page is resized, but the problem is that it is not resized…
twitter-bootstrapasked Leandro 459 -
1
votes0
answers54
viewsQ: .htacess redirects to wrong url
I had deploying the user-friendly url in a project to test, so I decided to deploy in TCC, but something is happening that I can’t detect what it is. When I upload the site in / he opens the…
-
1
votes1
answer39
viewsQ: Syntax error: Variable problem inside the IF
My code: DELIMITER // CREATE FUNCTION f_desc (in_preco int) RETURNS INT BEGIN DECLARE fim_preco INT; IF in_preco >= 100 THEN -- aqui fim_preco := format(10 * in_preco/100, 2); ELSEIF in_preco…
-
1
votes2
answers139
viewsQ: Problem with Ajax and php
I’m doing a test with ajax and php, but it’s returning a value nothing to see test2.html <html> <head> <title>TODO supply a title</title> <meta charset="UTF-8">…
-
1
votes0
answers59
viewsQ: Problem with Crawler
I’m trying to make a simple crowler that takes the temperature, just for study, I’m using the simple_html_dom to read the page, but in the file_get_html function of the link above, it presents some…
-
3
votes2
answers2051
viewsQ: Authentication error sending file to repository on Github
Well, I followed that one link, but when I get to git push -u origin master it asks for the git user and password in a windows Forms, then asks the user (2 line), and asks for the SSH password and I…
-
1
votes1
answer52
viewsQ: Doubt regarding the MVC
I’m doing my first project using MVC in PHP, and I came across this question: In relation to ajax and requisições assíncronas, when I request a page, that page that processes the ajax request would…
-
2
votes1
answer26
viewsQ: How to run PHP JAVASCRIPT code without an event
Next, I’m trying to replace the alert for modal of that lib that uses jquery. In this case I am using the first example: <div id="ex1" class="modal"> <p>Usuário ou senha…
-
0
votes0
answers3702
viewsQ: Use of Undefined Constant
Well I was in the same trouble of that question, gave an answer to use define('ROOT_PATH', dirname(__FILE__));, (my problem without using this solution) but in mine it does not work. The following…
-
-3
votes4
answers653
viewsA: Cross values in array
I thought the following: $dados = array('0.10', '0.20', '0.30', '0.50', '3.00', '3.30', '4.00', '5.00', '1.00', '1.10', '2.00', '2.20'); $valorX = 5.00; $nc = count($dados); for($a = 0; $a < $nc;…
-
0
votes2
answers156
viewsQ: PHP does not recognize connection as parameter
I’m making a system using MVC (first time I use it in PHP), and when I will login appears: Uncaught Argumentcounterror: Too few Arguments to Function Login::login(), 2 passed in C: wamp64 www…
-
2
votes0
answers43
viewsQ: Friendly URL works and to
Well, I have a problem with the .htaccess e a URL amigável, it works, but sometimes it stops and comes back to work. (Rewrite module is active, use PHP 7). And I have one more question, I have a…
-
3
votes2
answers444
viewsQ: MVC + DAO - Which way should I choose in PHP?
In Java, in the model class I can create in the class funcionario the attribute Setor s, but PHP is not typed, as I could solve this association case? After some searches here on the site, I saw…
-
2
votes1
answer1051
viewsQ: Check password hash on login (password_hash)
I made all the login code, but when I went to test, it gave error in the login, using the same password I used in the registration, when I realized that the password_hash always generates a…
-
0
votes4
answers4002
viewsQ: Vscode does not open page in browser
Next, I installed PHP Debug in VS Code just like this site teaches https://imasters.com.br/back-end/configurando-debugger-php-no-vs-code, however, when running vs does not open the page in the…
-
0
votes1
answer112
viewsQ: Missing IF in Procedure
I did the following study, but in the END// appears 'missing if', someone knows why? William helped me with this problem, but every time I try to register, the trial only goes to the last else. I…
-
0
votes1
answer1040
viewsQ: There is no active transaction error
I started studying PDO these days, and I started doing a CRUD, but when I give the Insert it shows the error: There is no active transaction I tried to see in other related questions, but did not…
-
0
votes1
answer110
viewsQ: Login with PDO does not check number of select results
I am starting a new system only that instead of procedural I am using O.O. and PDO, I started to login, but even select returning the value, PHP shows that user or password is wrong... Login method:…
-
0
votes1
answer23
viewsA: How to check and add a / in a path
You can do it this way: $caminho = $_POST['caminho']; // nisso ele pegará o último caracter do caminho e verificará se é uma barra, // se não for ele adicionará $barra = substr($caminho, -1); if…
-
1
votes1
answer37
viewsQ: Javascript sends Ubmit even checking date
I have a function in JS that validates the date so that it is not less than today’s date, it is working correctly, but when pressing the button of the form, it shows the message that the date is…
-
0
votes0
answers42
viewsQ: HTML (Bootstrap) cutting XML content
So, the data from is coming right, but it’s not being shown. I tested it without css and it worked. The problem is in the 3 Ivs, someone can identify why? (EXTREMELY URGENT). // essas tres divs…
-
1
votes0
answers20
viewsQ: Problem detecting captcha creation
I’m logging in the system, but I’ve reached a point where I can’t think of a logic to execute. When the user tries to log in and misses the password 3 times, a captcha will appear on the login…
-
0
votes3
answers2954
viewsA: Make text bold with php
If you want to put just the space between them I think it solves: $text = $_POST['publicacaoText']; // aqui ele quebrará $text toda vez que achar */ $palavras = explode("*/", $text); // aqui contará…
-
0
votes3
answers52
viewsA: How to use a fetch_array contained in another PHP page?
Your question is a little confused, but I think I get it. In this case you are only printing a name because the name is being overwritten on $_SESSION (I’ve had this problem on my TCC). What can be…
-
-1
votes1
answer857
viewsA: Validate PHP Login PDO MYSQL
Maybe it could be because of lack of beginTransaction() and of commit(). If not already, place a Trycatch and see if it shows any errors. require_once("conexao.php"); $sql = $conn->query("SELECT…
-
2
votes1
answer85
viewsA: Redirect to the mobile version of the site via javascript or responsive design, which is the best option?
I believe it’s best to make one responsive, so you won’t have to make two websites (in this case one for computer and one for mobile). And also for having more advantages: usability, speed and…
-
1
votes0
answers48
viewsQ: PHP does not save message in XML
I want to set up a comment system, when opening the xml php can, but when saving a new message not, and can not save it also not from the error. (Note: it is kind of urgent pro TCC). Codes:…
-
0
votes1
answer64
viewsA: WAMPSERVER INSTALLATION PROBLEM
In this case, it is because you are installing a Wamp extension, in the case of Mariadb, (you can check the title of the open form).…
wampserveranswered Leandro 459 -
-1
votes1
answer216
viewsQ: How to return PHP value without having to reload the page?
At first I found this question Run PHP without updating the entire page, that gave me a notion, but did not help me to solve the problem. It is the following: On the page pag_messages.php all user…
-
0
votes1
answer157
viewsQ: Move_upload_file does not work
I am developing a code to open an xml, if the file does not exist, a new one will be created, beauty, the system is creating, but when it comes to moving the file to the folder that it will be…
-
0
votes0
answers889
viewsQ: SMTP connect() failed
Someone can help me, I am a few days trying to solve this error with Phpmailed. I have tried to use 3 different scripts, and always shows SMTP connect() failed, I’ve used the door 465, but gave the…
-
0
votes0
answers34
viewsQ: Include PHP(PDO) class
Well, I started my PDO studies recently, I’m trying to include a class in a form, but it’s giving the error: failed to open stream: This either if I use direct include with the path, or if I use…