0

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."]");
?>
2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by issaru07
0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.