Jump to content

Danian

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Danian's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi All, Hope you can help, i have a MySQL string that i want to remove all the spaces in name and postcodes and then uppercase them, before I try to match them in the Database, but spent a couple of hours and tried various ways, but still failing. Please can yo have a look and advise.... SELECT * FROM vwproperty WHERE str_replace(' ', '', strtoupper(surname)) LIKE '% ."strtoupper(str_replace(" ", "", {$_SESSION["Surname"]}))."%' AND str_replace(' ', '', strtoupper(postcode)) LIKE '% ."strtoupper(str_replace(" ", "", {$_SESSION["Postcode"]}))."%'ORDER BY surname Thanks in Advance, D
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.