I am getting a parse error, and I think it\'s because of the quotation marks over \"time\". How can I make it treat it as a whole string?
\"time\"
Use the addslashes function:
$str = "Is your name O'Reilly?"; // Outputs: Is your name O\'Reilly? echo addslashes($str);