Good day everyone and Merry Christmas!
I have a question and I hope that there's anyone of you can answer me.
here is my code:
for($z=0;$z<=$countdate;$z++)
{
$ha= $newdate[$z];
echo $newdate[$z]."<br>";
$querySearch = "SELECT * FROM actatek_obtc where date='$newdate[$z]'";
$qryResult = mysql_query($querySearch);
$row = mysql_num_rows($qryResult);
//echo $emp_id." ".$newdate[$z]."<br>";
}
Question:
1.) how can I do a query using an array?
2.) if I will echo the $querySearch variable, it will show a return of:
SELECT * FROM actatek_obtc where date=''
why?
Thank you very much!
Grace