how long does it take for a guy to know if he likes you, how to fetch data from database on button click in javascript