[英]i cannot get to call the id form the fuctions page it shows that error
function.php function.php
<a href = "details.php?pro_id='.$pro_id.'"><button type="button" class="btn btn-primary">View Detail</button> </a>
=========================================== ==========================================
details.php details.php
if(isset($_GET(['pro_id'])){
$product_id = $_GET['pro_id'];
$get_pro = "select * from products where product_id='$product_id'";
$run_pro = mysqli_query($con, $get_pro);
Its not working it show the following error: 它不起作用,它显示以下错误:
Fatal error: Cannot use isset() on the result of a function call (you can use "null !== func()" instead) in C:\\xampp\\htdocs\\Raj_Cassette\\details.php on line 52
致命错误:在第52行的C:\\ xampp \\ htdocs \\ Raj_Cassette \\ details.php中,无法在函数调用的结果上使用isset()(可以使用“ null!== func()”代替)
$_GET is not a function. $ _GET不是函数。 It is an array so
这是一个数组
Not 不
$_GET(['pro_id'])
But 但
$_GET['pro_id']
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.