Fixed the newsletter.
This commit is contained in:
parent
b170abd1fc
commit
be7707cad3
3 changed files with 9 additions and 7 deletions
|
@ -294,13 +294,13 @@ span.price {
|
|||
<a href="#"><i class="fa fa-facebook"></i></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#"><i class="fa fa-twitter"></i></a>
|
||||
<a href="https://twitter.com/batuhanbasogluu"><i class="fa fa-twitter"></i></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#"><i class="fa fa-instagram"></i></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#"><i class="fa fa-pinterest"></i></a>
|
||||
<a href="https://github.com/batuhan-basoglu"><i class="fa fa-github"></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -20,13 +20,13 @@
|
|||
</div>
|
||||
<ul class="newsletter-follow">
|
||||
<li>
|
||||
<a href="https://github.com/batuhan-basoglu"><i class="fa fa-facebook"></i></a>
|
||||
<a href="#"><i class="fa fa-facebook"></i></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://github.com/batuhan-basoglu"><i class="fa fa-twitter"></i></a>
|
||||
<a href="https://twitter.com/batuhanbasogluu"><i class="fa fa-twitter"></i></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://github.com/batuhan-basoglu"><i class="fa fa-instagram"></i></a>
|
||||
<a href="#"><i class="fa fa-instagram"></i></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://github.com/batuhan-basoglu"><i class="fa fa-github"></i></a>
|
||||
|
|
|
@ -34,10 +34,12 @@ if (isset($_POST["email"])) {
|
|||
";
|
||||
exit();
|
||||
}else{
|
||||
|
||||
$db_sql = "SELECT * FROM email_info";
|
||||
$db_query = mysqli_query($con, $db_sql);
|
||||
$count_db = mysqli_num_rows($db_query);
|
||||
$sql = "INSERT INTO `email_info`
|
||||
(`email_id`, `email`)
|
||||
VALUES (NULL, '$email')";
|
||||
VALUES ($count_db + 1, '$email')";
|
||||
$run_query = mysqli_query($con,$sql);
|
||||
echo "<div class='alert alert-success'>
|
||||
<a href='#' class='close' data-dismiss='alert' aria-label='close'>×</a>
|
||||
|
|
Loading…
Reference in a new issue