Hi I would like to scroll to a div after running a php code that runs when i press the it searches the database and posts to a table thats located in that div
<?php
session_start();
include_once 'includes/dbh.php';
if(isset($_POST['search']))
{
$searchvalue = $_POST['searchvalue'];
$query = "SELECT * FROM `users` WHERE CONCAT(`user_id`, `user_username`, `user_password`, `user_name`, `user_gender`, `user_age`, `user_contact`, `user_email`, `user_address`, `user_industry`, `user_findout`, `user_admin`) LIKE '%".$searchvalue."%'";
$result = mysqli_query($conn,$query);
echo"
<script type='text/javascript'>
$(document).ready(function () {
$('html,body').animate({
scrollTop: $('.graph').offset().top
},
'slow');
})
</script>";
else
{
$query = "SELECT * FROM `users`";
$result = mysqli_query($conn,$query);
}
?>