[英]i cannot get to call the id form the fuctions page it shows that error
function.php
<a href = "details.php?pro_id='.$pro_id.'"><button type="button" class="btn btn-primary">View Detail</button> </a>
==========================================
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);
它不起作用,它顯示以下錯誤:
致命錯誤:在第52行的C:\\ xampp \\ htdocs \\ Raj_Cassette \\ details.php中,無法在函數調用的結果上使用isset()(可以使用“ null!== func()”代替)
$ _GET不是函數。 這是一個數組
不
$_GET(['pro_id'])
但
$_GET['pro_id']
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.