0
I need to run a precedent by sending a parameter by php no longer returning follows the code below:
//código em PHP
$figura = mysqli_query($conexao,"CALL `spare_change`.`boxlabel`('".$template."')") or die("erro no update");
//A Procedure Criada
CREATE DEFINER=`root`@`%` PROCEDURE `boxlabel`(template varchar(20))
BEGIN
-- update prom.label_template set label_tpl_content = replace(label_tpl_content, ' eJz', 'eJz') where label_tpl_name = @template;
select * from prom.label_template where label_tpl_name = @template;
END
where is the error in the code?
this precedent executes an update with a Where of this parameter plus the update returns without affecting the lines and outside the precedent works
– teste1234
The update in the past is commented,
--
at the beginning of a command is a comment.– Leite
yes in the code is commented more what I am running does not run the Precedent more does not change the lines
– teste1234
Have you tried removing the
--
?– Leite
yes I have removed yes
– teste1234