Posts by Gustavo Henrique • 27 points
6 posts
-
0
votes1
answer52
viewsQ: how to run an Insert query in a time interval with mysql
I need to run an Insert query every day at 23:59 with Mysql, without having to access the system INSERT INTO TB_ESTOQUE_DIARIA (ID_PRODUTO, ESTOQUE, DATA) SELECT ID, ESTOQUE_ATUAL,…
-
0
votes3
answers60
viewsA: how to return the current line using variable but return the line being used the PHP variable
I did it and it worked: <?php function __CODIGO_ERRO__(){ $backtrace = debug_backtrace(); $line = $backtrace[0]['line']; return "<div class='box-alert box-alert-top box-alert-erro'> <div…
-
-1
votes3
answers60
viewsA: how to return the current line using variable but return the line being used the PHP variable
The way you did it worked, but it doesn’t work that way: <?php function line(){ $backtrace = debug_backtrace(); $line = $backtrace[0]['line']; return $line; } define("__CODIGO_ERRO__", " <div…
-
-4
votes3
answers60
viewsQ: how to return the current line using variable but return the line being used the PHP variable
For example: <?php $linha = __LINE__; echo "a linha atual é $linha <br>"; //deveria retornar "a linha atual é 4" echo "a linha atual é $linha <br>"; //deveria retornar "a linha atual…
-
3
votes1
answer302
viewsQ: Taking out an element that is inside an iframe
I needed to take a title that is inside an iframe, I did it with jquery but it takes too long to disappear or even not disappear. I did so with jquery: $(document).ready(function () {…
-
-1
votes1
answer245
viewsQ: Notice: Undefined offset: 5 in C: xampp htdocs My projects teste2.php on line 10, the value of the arrays being a form value
I need to write a data chosen by the user, but when not chosen all data appears this message Notice: Undefined offset: 5 in C: xampp htdocs My projects online 10 This is my code: php test. <form…
phpasked Gustavo Henrique 27