Possible Duplicate:
Difference between single quote and double quote string in php
I have the following:
<?php
$message = '<div id="msg-status" class="msg-status">Item #{$item} - {$desc} has been added successfully.</div>';
$data = array(
'success' => $products_table,
'message' => $message
);
header('Content-type: application/json');
echo json_encode($data);
?>
Can someone help me make {$item} and {$desc} actual variables. I read you should put brackets around them to make them variables but they are still coming up as part of the string. Any suggestions on where I am going wrong?