references:joomla.framework:database:jdatabase-addquotedaddQuoted
Adds a field or array of field names to the list that are to be quoted. Field names that are added to this list will have the name and value quoted. Field names or values normally need to be quoted if they contain quote characters (eg. John’s should be quoted because it has a “‘“). Syntaxvoid addQuoted ( $quoted )
ExamplesExample $dbo = JFactory::getDBO(); $dbo->addQuoted( 'description' ); echo 'Description should be: ' . ($dbo->isQuoted( 'description' ) ? 'Quoted' : 'Not Quoted'); might produce: Result Description should be: Quoted Discussion |


