Quote:
//But remember inside double quotes $Variables work.. So..
//Remove the excess double quotes and make it tidy:
$sql = "INSERT INTO wall (author, message) VALUES ('$author', '$message')";
|
When using an associative array variable inside the string, wrap it by curly braces, like
PHP Code:
$sql = "INSERT INTO wall (author, message) VALUES ('{$Data['author']}', '{$Data['message']}')";