We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
data.php:
$conn=mysqli_connect("localhost","admin","xxxx"); //连接数据库地址、用户名、密码 mysqli_query($conn,"set names 'utf8'"); //数据库编码 mysqli_select_db($conn,"symhytwg_nows"); //数据库名称
index.php
//从这里开始 其他都不变 用下面的代码直接替换即可 记得导入数据 <?php $sql="select * from soul order by rand() limit 1"; $rs=mysqli_query($conn,$sql); ?> <?php while($rows=mysqli_fetch_assoc($rs)){ ?> <span id="sentence" style="font-size: 2rem;"><?php echo $rows["title"]?></span> <?php } ?>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
data.php:
index.php
The text was updated successfully, but these errors were encountered: