Posts by Christian Passold • 164 points
6 posts
-
0
votes3
answers615
viewsA: Save file name with empty spaces html/php
Dude, try this: <?php header("Content-Type: application/octet-stream"); #Tente usar este aqui. #Em um index terá o nome do arquivo completo, como veio do GET, mas sem barra ao contrario #E no…
-
2
votes4
answers2051
viewsA: Leave last 12 records and delete the rest in PHP/Mysql
Hello, From what I understand, you can do something like this, After executing the script, let’s say it enters 100 records, run another Insert. #Clear the table DELETE FROM <ultimos…
-
6
votes1
answer1434
viewsA: Procedure with IF NOT EXISTS
DELIMITER $$ Delete the file if it exists, only from security, after creating again. DROP PROCEDURE IF EXISTS Inserir_Disciplina $ CREATE PROCEDURE Inserir_Disciplina(p_disciplina_nome VARCHAR(45))…
-
0
votes2
answers1592
viewsA: Load Value in Input
Hello, Try to use the method .val() // Função quando Clicar no Botão. function id_host() { var n_pc = $("#conteudo").load("processa.php"); //Use o método VAL do jquery $("#conteudo").val(n_pc); } If…
-
4
votes8
answers481
viewsA: I can’t learn syntax for
Well, first it is necessary to know when it will be for which server the FOR. Basically, the FOR is for you to repeat an algorithm N times. Syntax: for(INICIO DAS VARIAVEIS; CONDIÇÃO ; CONSEQUENCIA…
-
2
votes2
answers1317
viewsA: How to get info from one column of the database via the GET method I receive from another page.
Dude, I recommend you do not give the id concretely (site.php? id=1). Make it send in an encrypted form, you can use the "base64_encode" when you insert the code in the link. Example: <a…