SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist bals28mjk's Avatar
    Join Date
    Aug 2007
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Quering records with & sign

    Hey guys,

    I'm having trouble grabbing records with the '&' sign included in them.

    Here's my php coding
    Code:
    $query = sprintf("SELECT `titleDescription` FROM products WHERE `titleDescription`='%s'",
    	mysql_real_escape_string($titleDescription)
    );
    Thoughts?

  2. #2
    SitePoint Evangelist bals28mjk's Avatar
    Join Date
    Aug 2007
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nevermind, it had to do with me forgetting to encode a certain name value pair when sending the data via ajax.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •