adn258's Profile User Rating: -----

Reputation: 4 Apprentice
Group:
Active Members
Active Posts:
535 (0.85 per day)
Joined:
31-August 11
Profile Views:
3,124
Last Active:
User is offline Today, 01:23 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   adn258 has not set their status

Posts I've Made

  1. In Topic: Is It Better To Use Of Enums Arrays, Or Reference Tables For Set Data?

    Posted 21 May 2013

    Never thought about that either. Essentially what you're saying is a lot of programming problems don't have a de facto method for solving the issue at hand.
  2. In Topic: Global Regex Javascript Replace Doesn't Work No Matter What I Do?

    Posted 19 May 2013

    View PostKruithne, on 19 May 2013 - 02:02 PM, said:

    Hello,

    The problem here lies with the way you are escaping the square brackets inside the regular expression. Using one slash is simply escaping a character between the " ", you need to apply double slashes, See the snippet below!
    var opinion = "Notch is a [GOOD] programmer";
    opinion = opinion.replace(new RegExp("\\[GOOD\\]", "g"), "[BAD]");
    alert(opinion); // Outputs: Notch is a [BAD] programmer
    
    


    Wow Bingo!! I can't believe I didn't get that. Thanks for your help friend.
  3. In Topic: HTMLPURIFIER Vs. Nothing Vs. htmlspecialchars etc.?

    Posted 17 May 2013

    but html purifier doesn't use bbcode which is fine by me but I'm wondering what sites like this use with their bbcode or is that necessary why not just stick with html purifier then?
  4. In Topic: Efficiently Selecting From Database Using Multiple User Inputs?

    Posted 29 Apr 2013

    In this case just and but remember the complication is with all here meaning you don't put anything in the query. I don't see how you could use implode with this
  5. In Topic: Efficiently Selecting From Database Using Multiple User Inputs?

    Posted 29 Apr 2013

    Right I had already thought about that too but I don't like inefficiency like that, I like things to be programmed at least partially intelligently. Basically you just need an add to a query string like you show and for each one selected params++ is incremented whilst on the other if statements if params is greater than 1 you apple ' AND BLAH BLAH '. This requires one if statement PER USER SELECTION but not thousands of switches which would be required if you had many user selections lol.

My Information

Member Title:
D.I.C Addict
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Click here to e-mail me

Friends

adn258 hasn't added any friends yet.

Comments

adn258 has no profile comments yet. Why not say hello?