的index.php如何将一个变量传递到另一个页面
$typesql = $_GET['type']
fetch_pages.php
$results = $mysqli->prepare("SELECT name, type FROM artists WHERE type = ?);
$results->bind_param("s", $typesql);
$results->execute();
$results->bind_result($name, $type);
我用上面得到的index.php中,艺术家型,我想要通过它在fetch.php中使用它并将其绑定到我的sql查询中。
使用查询字符串从一个页面传递值到另一个。 就像http://localhost/fetch.php?type = –