hi,
i have the following:
i am trying to add another field to the query and also a GROUP BY clause. but i cant seem to get it right. I tried:
not sure what to do...
thanks in advance,
geebee
i have the following:
Code:
$sql="SELECT COUNT(infosection) as TEE FROM tbl_news WHERE dayname ='".$count."'";
$rs=odbc_exec($conn,$sql);
if (!$rs)
{exit("Error in SQL");}
while (odbc_fetch_row($rs))
{
$news=odbc_result($rs, TEE);
print "<br>";
echo $news;
}
Code:
$sql="SELECT COUNT(infosection) as TEE, shift FROM tbl_news WHERE dayname ='".$count."'";
$rs=odbc_exec($conn,$sql);
if (!$rs)
{exit("Error in SQL");}
while (odbc_fetch_row($rs))
{
$news=odbc_result($rs, TEE, shift);
print "<br>";
echo $shift;
echo $news;
}
not sure what to do...
thanks in advance,
geebee
Comment