我正在编写一个简单的Web应用程序,并且我正在使用google登录指令。
当我在$ on方法中设置范围值时,它在我的html页面中不起作用。
这是我的javascript:
$favourited_who = $user; // u variable
$favourited_by = $username; // logged in user
// Get all the favourites of the logged in user...
$q = mysqli_query ($connect, "SELECT * FROM favourites WHERE favourited_by='$username'");
$num_of_favs = mysqli_num_rows($q);
$r_query = mysqli_fetch_array($q);
$db_fav_who = $r_query['favourited_who'];
$db_fav_by = $r_query['favourited_by'];