Given Sql error "Unknown Column in Where Clause"
<?php
require_once('config.php');
$orderId=$_REQUEST['order_Id'];
$orderValue=OrderDetail($orderId,$dbc);
echo '<strong>Name:-</strong>'.$orderValue["order_payment_first_name"].' '.$orderValue["order_payment_last_name"].'<br>';
echo '<strong>Address:-</strong>'.$orderValue["order_payment_address1"].'<br>'.$orderValue["order_payment_address2"].'<br>'.$orderValue["order_payment_city"].' '.$orderValue["order_payment_state"].' '.$orderValue["order_payment_country"].'<br>';
echo '<strong>Email:-</strong>'.$orderValue["order_payment_email"].'<br>';
echo '<strong>Ip:-</strong>'.$orderValue["ip"].'<br>';
?>
How can we resolve this and how to declare a select query?
'; echo 'Address:-'.$orderValue["order_payment_address1"].'
'.$orderValue["order_payment_address2"].'
'.$orderValue["order_payment_city"].' '.$orderValue["order_payment_state"].' ' ?> – Abhishek shukla Apr 15 '15 at 09:42