簡體   English   中英

我無法從功能頁面調用ID,該頁面顯示該錯誤

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM