Ash*_*tha 0 php get e-commerce web
function.php
<a href = "details.php?pro_id='.$pro_id.'"><button type="button" class="btn btn-primary">View Detail</button> </a>
Run Code Online (Sandbox Code Playgroud)
===========================================
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);
Run Code Online (Sandbox Code Playgroud)
它无法正常显示以下错误:
致命错误:不能在函数调用的结果上使用isset()(可以在第52行的C:\ xampp\htdocs\Raj_Cassette\details.php中使用"null!== func()")