PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
$query="select * from negocios where Data_venda BETWEEN '$_POST[datanicial]' AND '$_POST[datafinal]'";
$result=mysql_query($query);
while ($row=mysql_fetch_array($result)){
But it doesn't work. For example it returns empty dates (0000/00/00). What's wrong?
For example: If datainicial=2010-03-12 I'll get dates
0000-00-00
2010-03-11
2010-02-28
2010-03-12
if data inicial=2010-03-11 the results are
0000-00-00
2010-03-11
2010-02-28
Why?