你的意思是說

專注于為中小企業(yè)提供做網(wǎng)站、成都網(wǎng)站設(shè)計服務(wù),電腦端+手機(jī)端+微信端的三站合一,更高效的管理,為中小企業(yè)新鄉(xiāng)縣免費做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動了超過千家企業(yè)的穩(wěn)健成長,幫助中小企業(yè)通過網(wǎng)站建設(shè)實現(xiàn)規(guī)模擴(kuò)充和轉(zhuǎn)變。
點擊查詢后
要吧與關(guān)鍵字相關(guān)聯(lián)的整條記錄都顯示出來?
那樣的話
你要先把這條記錄復(fù)制
給某個數(shù)組,然后輸出這個數(shù)組就可以了
$sql="select
*
from
db1
where
name=$_post[name]";
$result=mysql_query($sql,$con);
$row=mysql_fetch_array($result)
echo
$row[name];
echo
$row[age];
……
?php
header("Content-Type:text/html;charset=utf-8");
mysql_connect?('localhost',?'kiko',?'123456')or?die("不能連接數(shù)據(jù)庫");
//$res?=?mysql_db_query("user","select?O2,PH,TP,NH3,DT?from?user_pool");
$res=mysql_db_query("user","select?o2,PH,TP,NH3,DT?from?user_pool?where?us='qwe');
while?($row?=?mysql_fetch_array($res))?{
?
trtd檢測時間/tdtd??echo?$row["DT"];?/td?/tr????
trtd溫度(單位:)/tdtd??echo?$row["TP"];?/td?/tr????
trtd酸堿度/tdtd??echo?$row["PH"];?/td?
trtd含氧量(單位:mg/L)?/tdtd??echo?$row["O2"];?/td?/tr????
trtd含氨量(單位:mg/L)/tdtd??echo?$row["NH3"];?/td/tr
?
}
mysql_free_result($res);
?
/table
select * from table order by id desc limit 1 //mysql select top 1 * from table order by id desc //sql這樣試下看呢
分享標(biāo)題:php獲取表中的一行數(shù)據(jù),php獲取表中的一行數(shù)據(jù)函數(shù)
網(wǎng)頁網(wǎng)址:http://chinadenli.net/article24/heohje.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供外貿(mào)建站、商城網(wǎng)站、用戶體驗、域名注冊、Google、自適應(yīng)網(wǎng)站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)