如果下一行重复忽略 [英] If next row duplicate ignore
本文介绍了如果下一行重复忽略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有一张足球比赛表,每个结果/行都有一个日期,年月日。
有些游戏的日期相同,我希望它只在第一次显示时显示相同的日期。
我尝试过使用下面的代码,但它只是检查日期是否存在。
我需要检查日期是否与prev相同
[PHP] if(( $ gamedate)== 0){
echo""
} else {
echo" $ gamedate";} [/ PHP]
希望你能帮忙
hinksta
解决方案
gamedate) == 0){
echo""
} else {
echo"
gamedate" ;;} [/ PHP]
希望你能提供帮助
hinksta
如果您是从DB获取结果,然后在SQL查询中使用GROUP BY日期。
Hi all,
I have a table with football results, each result/row has a date, year-month-day.
Some games have the same date, I would like it to display the same date only the first time it is found.
I''ve tried using the code below but it only checks if a date is present or not.
I need something to check if the date is the same as prev or not
[PHP]if(($gamedate) == 0) {
echo ""
}else{
echo "$gamedate";}[/PHP]
Hope you can help
hinksta解决方案gamedate) == 0) {
echo ""
}else{
echo "
gamedate";}[/PHP]
Hope you can help
hinksta
If you are fetching the results from DB, then use GROUP BY date in your SQL query.
这篇关于如果下一行重复忽略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文