Jump to content


Member Since 22 Apr 2005
Offline Last Active Apr 04 2016 05:50 PM

Posts I've Made

In Topic: Email issue - name not showing in sent email

17 March 2014 - 08:14 PM

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.

In Topic: Where to place DB calls during refactoring

17 March 2014 - 07:48 PM

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/

In Topic: Website search engine not working

17 March 2014 - 07:17 PM

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? 

In Topic: cURL times out trying to connect to its own server

13 August 2013 - 03:59 PM

so when setting the URL, I found that (at least on this window's machine) I can use "http://localhost" and it works just fine.  Go figure.

In Topic: Removing the transition for this jquery slider

13 August 2013 - 03:27 PM

From your code, it looks like you're using a slider called "jssor"


I googled it and it has a lot of examples of how to use it, including a parameter called "autoPlay" that can be set to not automatically start the slide show