Posts by Marcelo Diniz • 3,356 points
116 posts
-
3
votes2
answers1414
viewsQ: How to give automatic permissions in shell script
I have a project that whenever I go up to production or change the development machine I copy and paste the whole folder, only whenever I do this I have to give permissions in this folder and in…
shellasked Marcelo Diniz 3,356 -
4
votes2
answers537
viewsQ: How to avoid calling the function
I have in my systems a call for a function of javascript and it always worked. It’s a function to display/hide an image by loading to the user. The problem is that sometimes I have to call this…
-
6
votes4
answers24621
viewsA: Program to manage Mysql database on Windows?
One of the most used is the phpmyadmin . I use it a lot too Workbench
-
3
votes2
answers823
viewsQ: Selecting a checkbox and not sorting the dataTables
I’m using the dataTables and in one of the columns I placed a input:checkbox for the user to be able to mark all columns or uncheck, remembering that in the columns I have to sort, and in this…
jqueryasked Marcelo Diniz 3,356 -
8
votes3
answers267
viewsQ: Have some problem playing the function for variable
Can anyone explain to me if you have a problem playing a function for the variable, for example, in this case I’m talking about the var marcar. In this code is working, I don’t know if it causes a…
-
2
votes3
answers554
viewsA: Get the structure of a table through a query
If I understand it’s DESCRIBE nome_da_tabela ref.: https://dev.mysql.com/doc/refman/5.0/en/getting-information.html…
mysqlanswered Marcelo Diniz 3,356 -
0
votes5
answers491
viewsA: Product search by name and brand
One idea I have is this, create a view with the data you need, then when someone does a search, you do your select in that view. Example of the view CREATE VIEW `produto_marca` AS SELECT CONCAT_WS('…
-
1
votes4
answers3989
viewsA: How the relationship between the same table works
I use this kind of relationship to form hierarchies and menus with submenus. And I’ve never had problems with performance on this. Below is an example of the menu table: CREATE TABLE IF NOT EXISTS…
-
11
votes1
answer19067
viewsQ: How can we not close the twitter-bootstrap modal by clicking outside the area?
I do not know if there is a way, but I need to block the closing of the twitter-bootstrap modal when the user clicks outside the element area, only allowing to close it by clicking the closing…
twitter-bootstrapasked Marcelo Diniz 3,356 -
1
votes2
answers1228
viewsA: Using Ajax in Cakephp 2.0
I don’t know about Cake, I work with Codeigniter, but it can’t be much different. What I do is, in the ajax action I call the controller and the simplest is to give an echo (not the most…
-
4
votes1
answer751
viewsQ: Shell send error message
I have a running cron task that calls a shell script. This sh file backs up the database and saves it to a folder on the server. So far it’s working. I know that at the time of generating the backup…
-
4
votes3
answers3315
viewsQ: PHP session expires before time
I have a problem with a session time in PHP with Codeigniter. I was using the sessions in the IC and with so many problems I decided to look for a solution to use native sessions with the IC and at…
-
2
votes3
answers1619
viewsA: Insert data Database Related tables
From what I understand you are not able to insert the data in the table tb_detail_worker because it has two Foreign key (tb_worked id, tb_functions_id) so it will not be possible because even with…
-
1
votes3
answers2193
viewsA: How to Mount a Dynamic Checkbox
I don’t know if I understand, but when you change the < select > I imagine that you will make a search with ajax of the room data and with this data you will have to make a loop printing the…
-
6
votes4
answers2553
viewsQ: Database structure for multi-language system
I already have a system developed, using several tables in the database. I have to start migrating the same to the english and spaniard. The development part I have an idea already (not total), but…
-
0
votes3
answers1798
viewsA: How to work with PDF in Codeigniter?
The way you asked and the content itself posted doesn’t help much, it has some specific problem? See if it helps https://github.com/EllisLab/CodeIgniter/wiki/PDF-generation-using-dompdf…