PHP & LAMP & WAMP
PHP & LAMP & WAMP
https://github.com/xgqfrms/DataStructure/issues/7#issuecomment-430538438
https://github.com/xgqfrms/DataStructure
https://github.com/xgqfrms/DataStructure/tree/gh-pages/php
https://github.com/xgqfrms/DataStructure/blob/gh-pages/php/test/ajax.php
MySQL
<?php
$q=$_GET["q"];
// var_dump($_GET);
// echo "{$q}";
// exit();
$con = mysqli_connect('localhost','root','123456','dsqcx');
if (!$con){
die('Could not connect: ' . mysqli_error($con));
}
mysqli_select_db($con,"dsqcx");
// $sql="SELECT * FROM admin WHERE id = '".$q."'";
$sql="SELECT * FROM admin WHERE id = '{$q}'";
$result = mysqli_query($con,$sql);
echo "<table border='1'>
<tr>
<th>id</th>
<th>super name</th>
<th>super role</th>
<th>super rights</th>
<th>add time</th>
</tr>";
while($row = mysqli_fetch_array($result)){
echo "<tr>";
echo "<td>" . $row['id'] . "</td>";
echo "<td>" . $row['sname'] . "</td>";
echo "<td>" . $row['srole'] . "</td>";
echo "<td>" . $row['srights'] . "</td>";
echo "<td>" . $row['addtime'] . "</td>";
echo "</tr>";
}
echo "</table>";
mysqli_close($con);
?>
PHP
DCMA
https://www.cnblogs.com/xgqfrms/p/13329322.html
©xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/9805986.html
未经授权禁止转载,违者必究!