Posts by Bruno Oliveira • 375 points
7 posts
-
1
votes2
answers47
viewsA: Final date in D/M/A on a given number of days
If you want to calculate the date, disregarding the timetable, an alternative (from the PHP 5.1) is to use the flexibility of strtotime(). $qtde = 46; echo date("d/m/Y", strtotime("today midnight…
phpanswered Bruno Oliveira 375 -
0
votes1
answer272
viewsA: Multiple Inserts Inner Join PDO
From what I understand, your intention is to insert a record in the category table. Then use the registry code inserted during a loop (or something like that), which will insert the path to the…
-
1
votes3
answers556
viewsA: Pass multiple variables in Ajax function
If I understand correctly, you want to make an ajax query for each code field that is changed, and then fill in the description field with the result of the query. I’m only reproducing fragments of…
-
7
votes6
answers4038
viewsA: What is lexical analysis?
The answers are very good, and have already addressed the whole technical part of the subject. Therefore, just complementing the information, follows an explanation focused only on the etymology of…
-
9
votes2
answers15001
viewsA: How do I ignore a file after it’s already in a commit?
The .gitignore serves to ignore only untraceable files, ie from the moment when a git add is used to track file changes, the .gitignore cannot ignore these files. A gitignore file specifies…
gitanswered Bruno Oliveira 375 -
0
votes1
answer329
viewsA: Can I do more than 1 Insert using PDO?
Your while is closing before making any Insert. With this the code block referring to the Insert is executed only once. while ($linha=$qryEnd->fetch(PDO::FETCH_ASSOC)) { /*…
-
1
votes1
answer189
viewsA: REGEXP Regular Expression in Mysql
According to their descriptions, we can consider that all codes have quotes like "10" or ["10"] or ["10", "11"]. If this is the case, you can make an inquiry with the LIKE (escaping the quotation…