I also have the same question. One page has implemented parameter passing ***.PHP?id=XXX. How can another page obtain this parameter? In other words, how to write after "SELECT * FROM database name where field name="?
replySuccessfully solved:
$colname_Recordset1 = "1";
if (isset($_GET['sno'])) {
$colname_Recordset1 = (get_magic_quotes_gpc()) ? $_GET['sno'] : addslashes($_GET['sno']);
}
$query_Recordset1 = sprintf("SELECT * FROM pharmacy WHERE sno = %s", $colname_Recordset1);
Mainly ($_GET['sno']), where sno is the parameter passed by the URL.
I also have the same question. One page has implemented parameter passing ***.PHP?id=XXX. How can another page obtain this parameter? In other words, how to write after "SELECT * FROM database name where field name="?
This is what js should do
There are two pages
1.html contains this content
<a href="test.php">Click to test</a>
It is not obtained from a single page, but obtained by clicking to jump to the php page