Posts by Denied • 355 points
10 posts
-
1
votes0
answers56
viewsQ: Mysql generating error creating Foreign key: Error Code: 1215 Cannot add Foreign key Constraint
mysql is returning this error to me every time I try to add Foreign key to these tables, but I already checked the types of both fields and everything is the same. The table where I have the primary…
-
1
votes1
answer38
viewsA: Doubt in the execution sequence of the vba code
Just do a third function by calling these two in the sequence you wish. Sub chamaSubFunc() Call getimg() Call apagaimg() End sub Or you can still call apagaimg() at the end of your getimg works…
-
2
votes1
answer105
viewsA: "Random" number being generated along with md5 hash
Dear, The hash generated by md5 contains 32 characters, your output in pewview is correct, there is nothing wrong. to check, check the Rand in a separate variable, then join it with the time() in a…
-
1
votes2
answers749
viewsA: Does anyone know the possible cause of the "Uncaught Error: Syntax error, unrecognized Expression" error?
Analyzing your code, I could notice that the error is in typing the name of the variable "codigo_empr" in the lines marked below. if (sts == "CONCLUIDO") { if (data_banco_vencimento >=…
-
7
votes2
answers650
viewsQ: Add 1 month function in php fails when current month has no day 31
In this code PHP, I am checking the type of recurrence of an activity contained in a list of activities, and adding 1 month when it is monthly recurrence, 2 months when it is bimonthly recurrence…
-
2
votes1
answer58
viewsA: Error in forming a string through a Loop (with Foreach) in an Array
Thiago, he’s thinking < is an html tag. Instead of using "<", use "<" and instead of ">", use ">" and see if you can fix it. Because <qualquer_coisa> is a tag. The…
-
1
votes1
answer46
viewsQ: Query to remove duplicates entering apparent infinite loop
I have several fields in my table but I have 4 that are being repeated and I cannot allow registration with these equal fields: COD, TIPO_ATIVIDADE, DT_VENCIMENTO, `EXTRA_URGENTE_COMUM. I have tried…
-
0
votes1
answer60
viewsQ: AJAX does not respect foreach
I have a bank with two columns, namely: Activity and status. I have a table on my page with all Activities, and I want to know the status of each of them. I selected all tr’s and use an ajax inside…
-
2
votes1
answer138
viewsA: Delphi Computer Shutdown Problem
Try it this way: WinExec(PAnsiChar('cmd.exe /c shutdown -s -t 10'), sw_normal);
-
-2
votes1
answer89
viewsQ: Error accessing array indices by name( foreach-php )
I am not being able to access the indexes of an array, which is the result of a query, through the column name, only by the corresponding numbers. <?php $conexao = mysqli_connect("localhost",…