Fixed the newsletter.

This commit is contained in:
Batuhan Berk Başoğlu 2024-06-08 17:34:04 -04:00
parent b170abd1fc
commit be7707cad3
3 changed files with 9 additions and 7 deletions

View file

@ -294,13 +294,13 @@ span.price {
<a href="#"><i class="fa fa-facebook"></i></a> <a href="#"><i class="fa fa-facebook"></i></a>
</li> </li>
<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>
<li> <li>
<a href="#"><i class="fa fa-instagram"></i></a> <a href="#"><i class="fa fa-instagram"></i></a>
</li> </li>
<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> </li>
</ul> </ul>
</div> </div>

View file

@ -20,13 +20,13 @@
</div> </div>
<ul class="newsletter-follow"> <ul class="newsletter-follow">
<li> <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>
<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>
<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>
<li> <li>
<a href="https://github.com/batuhan-basoglu"><i class="fa fa-github"></i></a> <a href="https://github.com/batuhan-basoglu"><i class="fa fa-github"></i></a>

View file

@ -34,10 +34,12 @@ if (isset($_POST["email"])) {
"; ";
exit(); exit();
}else{ }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` $sql = "INSERT INTO `email_info`
(`email_id`, `email`) (`email_id`, `email`)
VALUES (NULL, '$email')"; VALUES ($count_db + 1, '$email')";
$run_query = mysqli_query($con,$sql); $run_query = mysqli_query($con,$sql);
echo "<div class='alert alert-success'> echo "<div class='alert alert-success'>
<a href='#' class='close' data-dismiss='alert' aria-label='close'>&times;</a> <a href='#' class='close' data-dismiss='alert' aria-label='close'>&times;</a>