Posts by Matheus • 151 points
16 posts
-
1
votes2
answers421
viewsQ: Regular Expression to capture after last bar
I have the following URL: ("file:///home/pasta/pasta/img/intro-bg.jpg") I wonder what regular expression I can use to capture only the intro-bg.jpg If anyone can help me, I’d appreciate it.…
-
2
votes1
answer103
viewsQ: PHP: Interface type attribute
I’m doing a study of Project Standards. My first standard is Strategy, where I have an abstract class that has two attributes that should receive instances of a class that implements a certain…
-
3
votes1
answer2482
viewsQ: Laravel: route with parameters
I have a school system with a call screen where there is a button that opens a modal with a form to choose the class and the date (chamadas/index). This form will redirect to a screen with the list…
-
1
votes2
answers580
viewsA: jQuery/AJAX: a single form that can be submitted to different urls (POST or PUT)
Solution: Check if a form id is coming and do the following: $('#formSalvarProfessor').submit(function(event){ event.preventDefault(); var id = $("input[name=ID_PROFESSOR_PRO]").val(); if(id){…
-
0
votes2
answers580
viewsQ: jQuery/AJAX: a single form that can be submitted to different urls (POST or PUT)
I have the following scenario: I have a form that serves to register or change a teacher; To register I have a button at the top that calls the modal to do the POST; To change I have a button in…
-
2
votes1
answer2431
viewsQ: Select with Laravel/Eloquent
I have the following select in my controller: $turmaAlunos = DB::select(' SELECT alunos.ST_ALUNO_ALU, alunos.ID_ALUNO_ALU FROM alunos WHERE alunos.ID_ALUNO_ALU NOT IN ( SELECT…
-
0
votes1
answer1565
viewsQ: Laravel/Eloquent: How to create a primary key composed of two foreign keys?
I am creating a simple system for school management and I will have a table called 'class students', where the primary key should be composed by the student id and class id, which are foreign keys…
-
1
votes1
answer346
views -
0
votes1
answer346
views -
0
votes1
answer833
viewsQ: Remove row from table after deleting via AJAX
I have a table that shows student records, and each row has a button to delete the student, and the deletion is done via AJAX. I would like to fadeOut the line that is deleted, so in AJAX Success I…
-
1
votes2
answers1121
viewsQ: Delete record with Laravel via AJAX
I am developing an application in PHP with Laravel and I have in my Alunoscontroller and following method: public function destroy($id) { $aluno = new Aluno(); $result =…
-
0
votes1
answer192
viewsQ: PHP - How to navigate a radios array?
I have the following code: <?php while($row = mysql_fetch_array($alunosTurma)){ ?> <tr> <td><?php echo $row['NM_NIS_ALU']; ?></td> <td><?php echo…
-
0
votes1
answer42
viewsA: Field Alert
To require the fields to be filled in you can add required input. It would look like this: <input type="text" name="nome" placeholder="Nome" class="nome" id="nometeste" required>…
-
0
votes1
answer413
viewsQ: Bootstrap - Class . table-Striped does not work properly within a while
I’m using Bootstrap to make a system. When it comes to listing my select lines while using the lines not without zebras correctly, they come out all dark, as if all the lines were the first one on…
-
1
votes3
answers2439
viewsQ: Popular Modal Bootstrap for User Edit
Good morning, you guys, I have a user screen with a list that was populated by a foreach, and each line has a link to edit the user. This link opens a modal that should already come with user…
-
1
votes1
answer631
viewsQ: Bootstrap Datepicker with Codeigniter
Good evening, class, I’m in a PHP project in Codeigniter, where I’m already using Bootstrap and Morris.js (graphics). I need to implement Datepicker now, and doing the same way that it would have…