i know this is a simple error but i just couldnt spot the error and i run the query seems fine. really appreciated... pleasee help

Parse error: syntax error, unexpected '=' in D:\xampp\htdocs\book\admin-order-details.php on line 16

<?php
$objConnect = mysql_connect("localhost","root","boon84") or die(mysql_error());
$objDB = mysql_select_db("db-test");
$id = $_GET['id'];
strSQL = "SELECT * FROM order_detail WHERE orderid='$id'";
$result=mysql_query($strSQL);
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>

You need to add a $ in front of the strSQL variable in line 6.

You need to add a $ in front of the strSQL variable in line 6.

thanks.. dont understand why i still cannot spot easy error. guess reallly too tired

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.