<?php $query = "SELECT quote FROM test WHERE \'ID\'=1"; $quote = stripslashes($query); echo $quote; ?>