Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中 
50% off Print Subscription of USA Today

Get the news delivered to your doorstep. Lock in the savings and receive USA Today for just $0.75 a day.
From our sponsors
PHP 判斷後抓第一筆資料
Sep 7th 2013, 07:08

這是我的程式
$d='D0912345678';
$sql1 = "SELECT * FROM text_table WHERE driver='".$d."' and finsh=1 order by date DESC "; //找司機帳號&完成排序預約日期由大到小顯示

$record1 = mysql_query($sql1);
while ($row1 = mysql_fetch_assoc($record1)) {
if(substr($row1['date'],0,10)==substr($_GET['ab2'],0,10)&&substr($row1['end_date'],10,9)<substr($_GET['ab2'],10,9)){
//如果同天而且抵達時間(資料庫)小於預約日期(新預約)
//ab5=抵達時間 ab2=預約日期

echo $row1['id'];
echo $row1['date'];
echo $row1['end_date'],'<br>';

//------------------------------------------------------------------//

}
}}

------------------------------------------------------------------------
最後會顯示
2 2013-08-28 12:20:00 2013-08-28 13:00:00
6 2013-08-28 11:20:00 2013-08-28 12:10:00
5 2013-08-28 10:30:00 2013-08-28 10:50:00

--------------------------------------------------
經過判斷後出現三筆但是我想要抓第一筆(2 2013-08-28 12:20:00 2013-08-28 13:00:00)
但是如果再SQL語法裡面加 limit 0,1 會導致判斷錯誤出現空白抓不到資料

請求更正寫法或者有其他方法能讓我判斷後能夠在抓第一筆資料

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends:

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

candycrushsaga3 發表在 痞客邦 留言(0) 人氣()

批踢踢實業坊 Food 板
 
TypePad Has the Tools

Looking for a premiere blogging service? Start your blog today on TypePad.
From our sponsors
[抱怨] 萬有全涮羊肉(忠孝店)
Sep 7th 2013, 20:05, by stickpig

作者stickpig (籬笆卡豬)

看板Food

標題[抱怨] 萬有全涮羊肉(忠孝店)

時間Sat Sep 7 20:04:57 2013

餐廳名稱:萬有全涮羊肉 地址: [忠孝店]台北市忠孝東路6段85號 電話:(02)2653-8798 消費時間:2013/09/07 事發經過: 看很多人食記都很推薦,趁這次接近生日與家人聚餐 平常總是人滿為患,沒想到這次用餐經驗卻非常失望 首先,在點菜時,我們就問說有沒有什麼推薦的 結果服務生只說了一句那邊有菜單可以劃記,就安靜了。 這服務生是怎麼當的?? 後來點了羔羊肩肉、雪花肥牛、活菌梅豬、高麗菜、金針菇、白精靈菇、絲瓜、 花枝丸、豬肉燒餅 肉我們一致覺得普通。 絲瓜有冰箱味,送上桌時已經褪色了,應該冰很久。 花枝丸有腥味。 豬肉燒餅的豬肉有股說不出的腥臭味 哥哥的女朋友平常是什麼都好吃非常不挑嘴的那型,但也覺得噁心 到這裡我覺得不是好不好吃的問題了,而是新不新鮮的問題。 最後結帳兩千多塊,真的很不划算啊!!!!! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.193.201.23

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends:

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

candycrushsaga3 發表在 痞客邦 留言(0) 人氣()

udn最新報導
udn最新報導:24小時即時提供國內外最新新聞,立即掌握各領域最新重大訊息。 
Eventbrite makes it happen

Create an event and sell tickets online through Eventbrite. It's simple! Sign up and get started today.
From our sponsors
敘利亞化武攻擊 傳總統未點頭
Sep 8th 2013, 14:06

德國「週日畫報」今天根據得自德國情報機構的消息報導,敘利亞政府軍8月21日在大馬士革近郊發動化學武器攻擊,可能並未取得總統阿塞德(Bashar al-Assad)的許可。

路透社報導,週日畫報(Bild am Sonntag)說,據德國情報人員截聽到的無線電通訊,敘利亞政府軍有些師長和旅長近4個半月來一直要求總統府允許他們動用化學武器。

德國情報官員指出,這可能意味阿塞德並未親自准許8月這起造成1400多人喪生的化武攻擊。

週日畫報說,無線電通訊是由航行在敘利亞外海的德國海軍偵察船歐克號(Oker)截獲的。

德國聯邦情報局(BND)局長辛德勒(GerhardSchindler)上週向國會國防和外交委員會進行秘密的簡報。週日畫報說,辛德勒說,敘利亞內戰可能再打數年。

德國三軍參謀長維克爾(Volker Wieker)將軍也告訴國會議員,敘利亞反抗軍各派系中,與蓋達組織(al-Qaeda)掛鉤的派系影響力愈來愈強。

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends:

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

candycrushsaga3 發表在 痞客邦 留言(0) 人氣()