Posts by Edi. Gomes • 426 points
11 posts
-
1
votes1
answer691
viewsQ: Better cardinality for a table with many relationships
Well, I have a table of cash flow, this table can be related to a process, request, bill to receive, bill to pay... among several other tables that relate and that can result in a launch in the box,…
-
2
votes2
answers1848
viewsA: Is referencing the table itself in Mysql correct?
Not only is it right, but it’s also a hand on the wheel (I use it a lot and I know a lot of people who use it), it’s called Self-handling, see: In relational algebra a self-relativeness happens when…
-
1
votes2
answers158
viewsA: problem with regular expressions in php
You were looking for the title in the same line that you were looking for your term, which is harder to do, it’s better to accumulate the entire file to search for the title, and as Oeslei said, the…
-
2
votes4
answers529
viewsA: How to generate an array with the list of uploaded files?
From what I understand you want to generate an array containing the list of names of the files that will be sent, if you use empty brackets, so it sets the index automatically: if…
-
1
votes2
answers1386
viewsA: How to renumber table Ids in Mysql?
I think you want to reformulate the AUTO_INCREMENT. Try: ALTER TABLE sua_tabela AUTO_INCREMENT = 0
mysqlanswered Edi. Gomes 426 -
2
votes2
answers1143
viewsA: Pass variable with various input/select
You can name inputs with brackets at the end, Ex: <?php if (isset($_POST)) { var_dump($_POST); } ?> <form method="post"> <input id="itens[]" name="itens[]" value="text1" type="text"…
-
7
votes1
answer450
viewsA: Knowing line and file that is running a method
You can do using the function debug_backtrace() : class Caller extends Log { function test() { // Chama a função na classe log parent::setLog(); } } class Log { // Metodo de log public function…
phpanswered Edi. Gomes 426 -
1
votes1
answer332
viewsA: How to enter the name of the files loaded in the database
Always search the documentation first: $this->load->library('upload'); //Configure upload. $this->upload->initialize(array( "upload_path" => './public/uploads/album/', "allowed_types"…
-
4
votes2
answers346
viewsA: CSS pseudo-class :Nth-of-type()
It has how to do using combiners: /*Seleciona a segunda ocorrência do elemento com a classe .p dentro de uma div */ div > .p ~ .p { font-weight: bold; color: blue; } /*Seleciona a terceira…
cssanswered Edi. Gomes 426 -
3
votes2
answers381
viewsA: Change Wordpress login method
Create a file called force-email-login.php containing the plugin script below and put in the folder wp-content/plugins this will force you to log in with the email (tested by me in version 4.1):…
-
1
votes2
answers98
viewsA: Doubt while sql
You can also ultilize INSTR to capture the first occurrence of "~3L" SELECT substring('~1BLB~2B1C~3L~1TPL~2B39~3L~1RAD~2C1D~3L' from 1 for INSTR('~1BLB~2B1C~3L~1TPL~2B39~3L~1RAD~2C1D~3L', '~3L'));…