How to display the collected data in real time on the page?
黄小金
黄小金 2018-03-23 16:20:15
0
2
2690

The data is collected from the terminal and sent to the Internet through the communication module. The data needs to be downloaded from the Internet and displayed on the web page in real time. What knowledge do I need to learn? Are there any learning routes, learning methods, books, etc. that you would recommend?


I am a novice graduate student. I have taught myself some basic knowledge of html, css, PHP, and mySQL. Currently, I have made a customer registration login page. The next step is to pour the data into Web page, please give me some advice! Thanks!

黄小金
黄小金

reply all(1)
sky

The file is in php format

<?php
//链接数据库去数据

//$arr取出的数组
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Document</title>
</head>
<body>
<table border="" cellspacing="" cellpadding="">
<tr><th>Header</th><th>Header</th><th>Header</th></tr>
<?php  fpreach($arr as $k=>$value){        ?>
<tr>
	<th><?php echo $value[字段1] ?></th>
	<th><?php echo $value[字段2] ?></th>
	<th><?php echo $value[字段3] ?></th>
</tr>

<?php } ?>
</table>
</body>
</html>


  • reply Thank you, I'll go research it.
    黄小金 author 2018-03-24 15:01:58
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template