When you insert the date into it, it adds + 1 day and inserts again.
Any ideas?
$valores = range(1,5);
$date = '2016-02-06';
for ( $i = 0, $total = count($valores); $i < $total; $i++){...
Good morning! So I have a boring problem here.
$nome_produto = $_POST['nome'];
$valor_produto = moeda_mysql($_POST['valor']);
$categoria_produto = $_POST['categoria'];
$descricao_produto = $_POST['descricao'];
$estoque_produto...
I have a routine that starts with a SELECT, and from this I trigger an email for each record found.
The problem is that if I have more than 3,000 records, my program is bursting with memory and the program does not run as it should ...
I foun...
I need to store data from a database search in an array, but with the code below it only stores a value in the array.
@busca= Item.find(:all,:conditions=>{:codigo=>params[:codigo]})
@busca.each do|buscador|
@novamatriz=Array.new
@novamat...
I have a blog and a few days ago started to give the following error in some pages.
404 Not Found nginx/1.6.2 (Ubuntu)
The error log is returning:
2016/02/02 10:44:12 [error] 612#0: *553172 connect() to unix:/var/ru...
People do not know anything about java and I believe that's what I'm going to need. Next situation:
Below is the script to generate the amount with interest and fine of the value between due date and payment date and their respective fields:...
Good afternoon
Friends I'm starting in asp net development and I made a web form application and put it in the azure.
It is a simple application of cardapio that accesses a mysql database created by azure as well.
What happens is that in visu...
I am creating a panel and I make a calculation of the time that an OS is open and depending on the result shows a colored ball on the table ... it just does not work when executing this error:
Parse error: syntax error, unexpected 'src' (T...
In a fomulário I have this link:
<a href="chk-gerente.php?nro_pergunta=<?php echo $nro_pergunta; ?>">Próximo</a>
And this button:
<button type="submit" class="btn btn-default" >REPONDER</button>
Pleas...
I have a query that should bring the name of the users who received a message sent by a user:
SELECT msg.msg_content
,usr.user_name
FROM message AS msg
INNER JOIN usuarios AS usr
ON msg.user_id_out = usr.user_ssid
WHERE usr.user_...