What I'm trying to say is that I have a database with the table "
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
);
" and a form like "
<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>
" And a connecten "
<?php
$conn = mysqli_connect('localhost', 'root', '', 'report');
?>
"
So how do I get to work on the web and not localhost? So when the website goes live that it will work for users on the website?