Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

2 Neutral

About micah1701

  • Rank
    Prolific Member
  • Birthday 04/07/1979

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
    Ellington, CT USA
  1. micah1701

    Email issue - name not showing in sent email

    The code does not post the senders name into the message body of the e-mail. The line: $message = stripslashes(strip_tags(trim($_POST['message']))); sets the variable "$message" with the "Message" form field that has been sent from the form Then, the line that sends the emal is: if (mail($your_email, $subject, $message, $from)) { notice it just passes that "$message" variable along. No where in there is the persons name ever attached to the message.
  2. micah1701

    Where to place DB calls during refactoring

    Using an ORM is definitely the way to go, centralizing the codebase for making queries helps with future expansion (as well as if you need to swap out db technologies) and, with well implemented libraries, will help mitigate security holes such as sql-injection. For lightweight use, I'm a big fan of Idiorm (and Paris if you need active record support) http://j4mie.github.io/idiormandparis/
  3. micah1701

    Website search engine not working

    I suspect it has more to do with your site's framework set up and/or the post back link to your search page. I see your URL is "index.php?search=XXX" The "?search" variable is part of the searched for keywords but it does not tell the index.php script which page to load. I suspect the URL should be something like "localhost/mmdb/index.php/search/?search=XXX" or simply "localhost/mmdb/search/?search=XXX" or maybe even "localhost/mmdb/search.php?search=XXX" Does the search page load at all (before you actually search for something?) If so, what is the URL of THAT page?

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.