Posts by Thiago Moreira • 61 points
15 posts
-
0
votes0
answers37
viewsQ: go through the map array and find the letters
I am developing a nodejs application with cron job and I need to pass the task by input configuration to the task. So I thought of a pattern to put in this input, example: 10S:3M:2H:1D:6Y:2W 10S:3M…
-
-2
votes1
answer71
viewsQ: Multidimensional php array error
I’m trying to find the difference between multidimensional arrays but presents these errors: Notice: Array to string Conversion in C: server htdocs System tests.php on line 319 Notice: Array to…
-
0
votes1
answer63
viewsA: Iterating select dynamic on add and remove lines
Solved by placing the EMPTY and calling the ajax inside the event click add new line $('.list_programs').empty().append(programs);
-
0
votes1
answer63
viewsQ: Iterating select dynamic on add and remove lines
I am developing an add and remove lines as in image The first select comes from a database with PHP and the ones that are added later dynamically come through getJSON. It is working but are being…
-
0
votes1
answer955
viewsQ: Mpdf in codeigniter
I’m using the library Mpdf in my project. I installed via Composer and locally with php version 7.1 (O php of the server in production is 7.2) and is enabled composer_autoload of CodeIgniter.…
-
0
votes0
answers41
viewsQ: Checking array value and adding corresponding css class
I am developing an odontogram and in the registration form which tooth or teeth will be made the treatment. These choices are recorded in a column and a flag 0 in another column relating that that…
-
0
votes1
answer375
viewsQ: Mount HTML table using JSON AJAX
I have a registration page and just below the form I have a table that shows the registered records. This HTML table is mounted with the data registered using JSON via jQuery. Even at this point it…
-
2
votes2
answers79
viewsQ: Array php not displaying key with same value
I have an array of hours(s) and an array of Schedule(s). When a customer makes an appointment, this time goes to the agenda array. 2 Customers scored the 08hrs, 3 clients the 09hrs ... same as this…
-
0
votes1
answer64
viewsQ: Codeigniter 3 My_model database
I’m developing an application where every customer will have their database. My scenario then will be: Client will log in and through his ID apply the bank configuration for this client. So in…
codeigniterasked Thiago Moreira 61 -
0
votes2
answers92
viewsA: Separate clients in foreach with mpdf
Resolved as follows: https://pastebin.com/r9MXGxSu Thank you @C.Bohok
-
0
votes2
answers92
viewsQ: Separate clients in foreach with mpdf
my scenario is as follows, I file a pdf using mpdf library and this pdf file is a query of intervals between client code and event date. Ex.: code: 0001 to 0004 and 0000-00-00 to 0000-00-00. It is…
-
0
votes0
answers29
viewsQ: require_once in helper codeigniter
I installed the mpdf library via Composer in codeigniter 2 and made a helper file where I call this library to generate the pdf. So within this helper I call autoload with require_once and it works…
-
1
votes1
answer767
viewsQ: Sending attachment php mail function
Good afternoon guys, I always use Phpmailer for sending emails, but I don’t know why this time I couldn’t configure on the server. So I’m using the code below to send and the question is that if you…
-
0
votes1
answer54
viewsQ: Get value in Array Chunk
I have 12 teams registered in a table and I want to divide them into 3 groups. So I receive these teams in array form and use the array_chunk to divide them, which will form the 3 groups of 4 teams…
-
2
votes1
answer923
viewsQ: Switch with Angularjs
Good afternoon guys, next, I have a benefit column on a table, where the data is recorded like this: 1,2,4,8. So, each number of this corresponds to a benefit, I’m trying to return this data to my…
angularjsasked Thiago Moreira 61