Posts by D. Watson • 898 points
61 posts
-
1
votes1
answer1355
viewsA: Error 1005 : Mysql - does not create foreign key
Check that the table was created with the engine InnoDB, sometimes may be with an engine that does not allow the creation of FK. If you want to test, a drop table tbl_estoque; drop table…
-
1
votes1
answer1773
viewsQ: Clear table body before popular again with Jquery and Ajax
I have the following function: $("#numeroRequisicao").change(function() { var numeroRequisicao = $(this).val(); $.ajax({ type: "POST", url:…
javascriptasked D. Watson 898 -
1
votes1
answer50
viewsQ: Problem with function for popular cities according to chosen state, change() function
I have the following function: $(function(){ $("#estadoPaciente").change(function() { var id = $(this).val(); $.ajax({ type: "POST", url: "../controller/ajax.selectCidades.php?id="+id, dataType:…
javascriptasked D. Watson 898 -
4
votes2
answers215
viewsQ: Gather background information that is in different arrays in the same array
When the user of a submit in the form, I receive the following arrays (in this case I had 3 products in the form, if I had only 1, in the 4 arrays I would have only the Indice 0, if I had 5…
-
0
votes4
answers296
viewsQ: Losing array elements when switching pages?
I am learning PHP and am trying to insert values in a array through a input, write a value on input and I click on the Add Array button and go to the PHP file where it has the function to add the…
-
2
votes3
answers33037
viewsA: How to use the Icon tag in HTML?
Good morning! I usually use the following format, for example: <a href="#"> <i class="fa fa-file-text-o"></i><span>Atendimento<i class="fa…
-
0
votes3
answers119
viewsQ: How to style the field where the options of a tag select are?
As the previous photo shows, I would like to style that spot that is marked in red. I’ve already put the following code: select option { background-color: white; border: 1px dashed red; } The…
-
0
votes1
answer226
viewsQ: How to make a Join of 2 tables and where 2 fields of table A refer to the same field of table B?
I have the command SQL that doesn’t work: SELECT GAT_requisicao.id_GATrequisicao as 'ID Requisição', GAP_atendimento.id_GAPatendimento as 'ID Atendimento', GR_paciente.nome_GRpaciente as 'Nome…
-
0
votes2
answers1958
viewsQ: Fire Jquery function when button is clicked
I have the following function: <script type='text/javascript'> $(document).ready(function(){ $("input[name='numeroRg']").blur(function(){ var $nomePaciente = $("input[name='nomePaciente']");…
-
4
votes1
answer125
viewsQ: Is it correct to use PHP code in the view layer along with HTML?
I’m starting now in the area and I have a college job to do and it is necessary to use the MVC standard, I have even separated things well, but I came across the following code in a file of my layer…
-
2
votes3
answers6461
viewsQ: Exchange CSS classes with simple Jquery function
I have a dropdown menu and in the corner of <li> I have an icon of the Font Awesome which symbolises an upward-facing arrow (fa fa-level-up pull-right) and when the user clicks on this…