我想说的是我有一个包含该表的数据库 "
CREATE TABLE posts (
cid int(11) not null AUTO_INCREMENT PRIMARY KEY,
uid varchar(128) not null,
date datetime not null,
city TEXT not null,
phone TEXT not null,
email TEXT not null,
serial TEXT not null,
info TEXT not null
);
" 和形式一样 "
<div id="create-post" class="">
<?php echo "<form action='".setPosts($conn)."' method='POST'>
<input style='width: 260px;' placeholder='First name and Last name' type='text' name='uid' value=''><br><br>
<input type='hidden' name='date' value='".date('Y-m-d H:i:s')."'>
<input placeholder='City or State' type='text' name='city'>
<input placeholder='Phone number' type='text' name='phone'><br><br>
<input placeholder='E-mail' type='text' name='email'>
<input type='text' name='serial'><br><br>
<textarea name='info' rows='8' cols='80'></textarea><br>
<button class='post-button' type='submit' name='postSubmit'>Post</button>
</form>";
?>
</div>
&#34; 和一个连接 &#34;
<?php
$conn = mysqli_connect('localhost', 'root', '', 'report');
?>
&#34;
那么我如何在网上工作而不是localhost呢? 那么当网站上线时它会对网站上的用户起作用吗?