this is my code, where i m getting the error.
Code:
function cart(){
foreach($_SESSION as $Name => $value) {
if($value > 0) {
if(substr($Name, 0, 5)=='cart_') {
$id = substr($Name, 5, (strlen($Name)-5));
$get = mysql_query('SELECT id, Name, Price FROM book WHERE id='.$id);