Jump to content

luke.browning

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

luke.browning's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi all, I'm having a problem with the following statement: $sql = "SELECT DISTINCT Users.Username, Users.Firstname, Users.Surname, Settings.Title FROM Users, Settings WHERE Settings.Owner = Users.Username AND Users.Firstname LIKE '%{$query}%' OR Users.Surname LIKE '%{$query}%' OR Users.Username LIKE '%{$query}%' OR Settings.Title LIKE '%{$query}%'"; Basically its a little script thats just searching the database for the variable I pass in. The problem is, I have it running on my development system fine, returns the correct results. The problem is, when I upload it to my web server, the results returned are every possible combination of results as if the WHERE Settings.Owner = Users.Username is not being tested. I don't know if it makes much difference, but my development system runs mysql version 5.1.37 and my web server is running 5.0.89. Thanks for any help, Luke
  2. Ahh ok. So, if I wanted to read the url in the form of: www.mysite.com/username What should I add to the .htaccess to change it to: www.mysite.com/user.php?user=username Thanks for your help!
  3. Hi all, Im trying to make a system where users can access their profiles by going to a url with their username at the end, e.g. http://www.mysite.com/username. I'm not quite sure how I can dynamically show their profiles depending on the username at the end? Any help would be appreciated, Luke.
×
×
  • 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.