Home

ttamniwdoog.com

Login

Website Magazine

Tags in Blog Vocab

admin Advanced Search Operators Block blog calendar ColorZilla command line cron Dell Precision 340 Derived Tables dig Drupal FireBug Firefox add-ons Google Google Analytics Joomla jos_users KeeneYPN linux LOCATE lynx MD5 mobile MX records MySQL mySQL table OPHCrack live CD Outlook Password php phpMyAdmin recovery salt single quotes SQL SQL Server tar Taxonomy Technorati Temp Tables tool ubercart Untar Web Development Toolbar wget Windows Windows Vista Windows XP YSlow
more tags

Navigation

  • Contact

Artisteer - Drupal Theme Generator

mySQL table contains single quotes

Posted Fri, 12/05/2008 - 09:37 by matt.goodwin

I have a mySQL database with a table of email addresses but some of the email addresses have single quotes for odd some reason.
I'll need to add some validation to my form eventually.
I need to find them and fix them now.
Here's the SQL to find them

SELECT * FROM tbl_email WHERE LOCATE("'",user_email) > 0

  • Printer-friendly version
  • matt.goodwin's blog
  • share
  • Send to friend
Theme provided by Acquia, Inc. under GPL license from TopNotchThemes Drupal themes