gpt4 book ai didi

php - MySQL日期格式排序错误

转载 作者:行者123 更新时间:2023-11-30 00:39:21 25 4
gpt4 key购买 nike

排序查询的 desc 或 asc 日期失败:(

我应该如何进行 mSQL 查询?

请问您能帮忙吗?

$tours = mysql_query("SELECT * FROM tours WHERE tour_category_id='".$tour_category_id[category_id]."' AND tour_status='Aktif' ORDER BY kayit_tarihi DESC ");

最佳答案

$tours = mysql_query("SELECT * 
FROM tours
WHERE tour_category_id='".$tour_category_id[category_id]."'
AND tour_status='Aktif'
ORDER BY tour_category_id DESC ");

关于php - MySQL日期格式排序错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21904143/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com