Posts by Miyukii • 325 points
15 posts
-
0
votes5
answers93
viewsA: How to explain this FOR loop in Javascript?
Basically, it’s not just the "TG" that goes missing, but all the <h2> containing class="cidade". When the "Hide" button is clicked, its script interprets all elements containing the "city"…
-
0
votes1
answer132
viewsA: Table Link - Mysql
Apparently the problem is in the first commented Join, where you are doing the Join of curso_materia.idCurso_Materia with curso.idCurso. If this table is from an N:N association, it should be from…
-
-1
votes1
answer105
viewsQ: How to change an attribute of a select without option value?
I have a select rendered in view with recovered data in a database. In the table in question estado, have the attributes id, siglaEstado and descricaoEstado. In case I’m using the id in the value of…
-
0
votes2
answers35
viewsA: Query String wrong with use of prepare. Wordpress
I think you should run the query before getting the results: $sql = $wpdb->prepare("SELECT * FROM {$wpdb->prefix}imagens WHERE categorias LIKE %d limit %s, %s", array('%' .…
-
2
votes4
answers209
viewsA: Doubts with conditional structure
Basically, its logic allows the execution of all if for the check and that only a condition of greater or equal execute the content of the condition. Let’s assume that the user enters with the…
-
2
votes2
answers905
viewsA: Problem creating a Foreign key
Apparently, the problem says that the column of your table tbl_proprietarios is invalid. I believe you did not create the attribute at the time of table creation: use db_clientes create table…
-
0
votes3
answers216
viewsA: How to take the value of a Database table field and use it in a PHP variable?
I believe you can create a query to retrieve this data from the database table the same way you do to enter or update records. Thus: $select = $conexao->prepare("SELECT clique FROM tabela WHERE…
-
0
votes1
answer33
viewsA: How do I pull the previously selected data from the register for a combobox in the issue?
Basically, it is not very recommended to use the for for this type of operation and yes foreach. An example in the first select: <div class="form-group col-md-5" > <label…
-
2
votes2
answers154
viewsA: Removes spaces produced by line breaks
Try adding a \s no regex. Thus: echo preg_replace('/[\s\n\r\t]/', '', $urlCorreios);
-
1
votes1
answer69
viewsA: Function Return after Eoferror [Python]
You are iterating over the numbers stored in the array seq_break with the value val and not with the value of n. The right thing would be: while True: try: n = input() seq_break = n.split(",")…
-
1
votes1
answer46
viewsA: Using select the same select more than once
Well, basically you are trying to run the loop "while" the execution of the query happens, in case it happens only once, and as you used the structure of the do while, it performs once, checks the…
-
0
votes1
answer46
viewsA: FOREIGN KEY Mysql PHP
Taking into account the information and that is a simple relationship, first you would need to "join" the "company" and "orders" tables. This is done through the inner join, where you will be…
-
2
votes2
answers3058
viewsA: How to use a Python Break?
You can put continue in place of break. vet = [] soma = 0 potencia = 3 for i in range(4): ver = int(input('Digite UM numero entre 0 e 1: ')) if ver >= 2: print('Digite corretamente') continue…
-
2
votes2
answers141
viewsA: connect python 3x to a server
You can make a conversion in your send() for the guy bytes before making the request. I read in the English forum that they also recommend the use of sendall() to prevent future problems. import…
-
0
votes1
answer69
viewsA: Mysql Xampp connection error
Normally, this error occurs because of a process called "mysqlid" that runs on port 3306. I would recommend you locate this process this way: Open the cmd, type netstat -o -n -a and look for port…