ç½é¡µå¼åçé¶æ®µæ»ç»ï¼åï¼JSä¸PHPä¹é´å¤§æ°æ®çä¼ é
1ãåç¨AJAXæ¹æ³ï¼éè¿php读åæ°æ®åºå°å¤§éæ°æ®æ¾ç¤ºå¨ç½é¡µå®¢æ·ç«¯ä¸ã
aã页é¢ä¸å è½½å®ï¼æ§è¡å½æ°Gett()ï¼ä»£ç å¦ä¸ï¼
InputVoltage V Frequency Hz
OutputVoltage V OutputMaxVoltage V OutputMinVoltage V
bãå¨æå¡ç«¯ï¼å°æ°æ®åºçå 容转为ä¸ç»´æ°ç»ï¼å¹¶ç¨xmlæ ¼å¼ä¿åèµ·æ¥ã
query('SELECT * FROM t_ups_rundata'); $result = $sth->fetchAll(); $i=0; $CountArray=0; foreach($result[0] as $x=>$x_value) { if($i%2==0) { $UPSData[$CountArray++]=$x_value; } $i++; }header('Content-Type: text/xml');echo "";echo ""; echo " "; $dbh = null;?>$UPSData[0] ";echo "$UPSData[1] ";echo "$UPSData[2] ";echo "$UPSData[3] "; echo "$UPSData[4] "; echo "$UPSData[5] "; echo "$UPSData[6] ";echo "$UPSData[7] "; echo "$UPSData[8] "; echo "$UPSData[9] "; echo "$UPSData[10] ";echo "$UPSData[11] ";echo "$UPSData[12] ";echo "$UPSData[13] ";echo "$UPSData[14] ";echo "$UPSData[15] ";echo "$UPSData[16] ";echo "$UPSData[17] ";echo "$UPSData[18] ";echo "$UPSData[19] ";echo "$UPSData[20] ";echo "$UPSData[21] ";echo "$UPSData[22] ";echo "$UPSData[23] ";echo "$UPSData[24] ";echo "$UPSData[25] ";echo "$UPSData[26] ";echo "$UPSData[27] ";echo "$UPSData[28] ";echo "$UPSData[29] ";echo "$UPSData[30] ";echo "$UPSData[31] ";echo "$UPSData[32] ";echo "$UPSData[33] ";echo "$UPSData[34] ";echo "$UPSData[35] ";echo "$UPSData[36] ";echo "$UPSData[37] ";echo "$UPSData[38] ";echo "
å®æ´ä»£ç ä¸è½½ï¼http://download.csdn.net/detail/aba13579/7877307
2ãéè¿æ交表åçæ¹å¼ï¼å¨phpæå¡å¨ç«¯çç¨$_GET()æ$_POST()æ¹å¼è·å大éçæ°æ®åå ¥æ°æ®åºã
aãéè¿ çtype="submit"ç±»åå°æ°æ®ä¸ä¼ å°PHPæå¡ç«¯ä¸ã
bãPHPæå¡å¨ç«¯éè¿$_POST()è·åæ°æ®åå ¥æ°æ®åº
exec("UPDATE t_ups_protocol set baudrate='$temp[0]'"); $dbh->exec("UPDATE t_env_param set interval='$temp[1]',offLine_Count='$temp[2]'"); $dbh->beginTransaction(); $dbh = null; } catch (PDOException $e){ echo 'Connection failed: ' . $e->getMessage(); $dbh = null;} ?>
å®æ´ä»£ç ä¸è½½ï¼http://download.csdn.net/detail/aba13579/7877311
3ãåç¨AJAXæ¹å¼ï¼ä¸æ¬¡æ§ä¼ éä¸ä¸ªæ°æ®å°phpæå¡å¨ä¸å¹¶ä¸æ¬¡æ§å°ä¸ä¸ªæ°æ®è¿åç»web客æ·ç«¯ã
以ä¸ç½åæ详ç»ä»ç»ï¼http://www.w3school.com.cn/ajax/ajax_asp_php.aspï¼æ ä¸å详述ã
声æï¼æ¬æå 容ç±ç½åèªåè´¡ç®ï¼çæå½åä½è ææï¼æ¬ç«ä¸æ¿æ ç¸åºæ³å¾è´£ä»»ãå¦æ¨åç°ææ¶å«æè¢ä¾µæçå 容ï¼è¯·èç³»admin@php.cnæ ¸å®å¤çã
ç¸å ³æç«
ç¸å ³è§é¢
- æä½ ä½¿ç¨PHPæ°æ®åºè¿ç§»å·¥å ·âPhinxâ
- 详解win10ä¸PHPçå®è£ é ç½®ï¼ä»¥php5.6为...
- php Swooleå®ç°æ¯«ç§å®æ¶è®¡åä»»å¡ï¼è¯¦è§£ï¼
- CodeIgniteråºæ¬é 置详ç»ä»ç»_PHP
- ç½é¡µå¼åçé¶æ®µæ»ç»ï¼åï¼JSä¸PHPä¹é´å¤§æ°æ®çä¼ ...
- PHPå¼ååºç¡æç¨ä¹ç®ä»
- PHPæ°æå ¥é¨ä¹ç®ä»
- PHPå¼ååºç¡æç¨ä¹ç¯å¢æ建
- phpå¦ä¹ 路线ä»ç»
- phpç¯å¢é ç½®
ä¸é¢æ¨è
- ç¬å¤ä¹è´±-phpå ¨æ å¼åæç¨
å ¨æ 170W+
主讲ï¼Peter-Zhu è½»æ¾å¹½é»ãç®çæå¦ï¼é常éåPHPå¦ä¹ å ¥é¨
- ç女å¿ç»-webå端å¼åæç¨
å ¥é¨ 80W+
主讲ï¼çç»å¸å¤ª ç±æµ å ¥æ·±ãæå¿«ç®æ´ï¼é常éåå端å¦ä¹ å ¥é¨
- 天é¾å «é¨-å®æå¼åæç¨
å®æ 120W+
主讲ï¼è¥¿é¨å¤§å®äºº æè·¯æ¸ æ°ã严谨è§èï¼éåæä¸å®webç¼ç¨åºç¡å¦ä¹
- ææ°æç«
- çé¨æè¡
- æä½ ä½¿ç¨PHPæ°æ®åºè¿ç§»å·¥å ·âPhinxâ
- ä¸æ详解WindowsåLinuxç¯å¢ä¸æä¹å®è£ é ç½®PHP
- 详解win10ä¸PHPçå®è£ é ç½®ï¼ä»¥php5.6为ä¾ï¼
- ãDTMãPHPåç¨å®¢æ·ç«¯v0.1 betaçæ¬åå¸å¦ï¼
- ãåè¡æ´çã28ä¸ªå ³äºPHPæ ¸å¿ææ¯çé¢è¯é¢ï¼å©å跳槽ï¼
- php Swooleå®ç°æ¯«ç§å®æ¶è®¡åä»»å¡ï¼è¯¦è§£ï¼
- ç¨PHPå°å¥³åç §ç转æå¯ç±çå¨æ¼«å¤´åï¼
- PHP æ件æä½å½æ°ï¼ä¸é¢ï¼
- 循ç¯å¤§éæ°æ®å¯¼è´å åè¶ åºï¼ä¸å¢å å åå¦ä½è§£å³è¯¥é®é¢
- VPNæ¯ä»ä¹
- æå ¨æ详ç»çPHPé¢è¯é¢(带æçæ¡)
- PHPå大主æµæ¡æ¶çä¼ç¼ºç¹æ»ç»
- PHPå¿«éæ建ä¸ä¸ªç®åçQQæºå¨äºº
- API常ç¨ç¾åéªè¯æ¹æ³(PHPå®ç°)
- PHP常ç¨æ¥ææ¶é´æä½åé
- Macçµè设置hostsçæ¹æ³ï¼å¾ææ¥éª¤ï¼
ç½åè¯è®º
ææä¸ç½çæ§åè¨ï¼è¯·éµå® æ°é»è¯Â论æÂÂå¡åÂÂè®®
æÂÂè¦Âè¯Â论