Robert1995 22 Light Poster

Go ahead and try this :

    /**
     * @static
     * @param $filename
     * @param bool $comma
     * @return bool|string
     */
    public static function getFileExtension($filename, $comma = false) {
      if (strrpos($filename, '.')){
        $extension = substr($filename, strrpos($filename, '.'));

        return $comma ? $extension : substr($extension, 1);
      } else
         return false;

   }

Also, make sure you use this only on upload

Robert1995 22 Light Poster

Do this ...

<?php $path= "http://localhost/tiffany/" ?>
<script type="text/javascript" >
var templateUrl = '<?php echo $path; ?>';
</script>
<script type="text/javascript" src="<?php echo $path; ?>js/manuals.js"></script>
Robert1995 22 Light Poster

Your explanation skills are horrible, but, you can try this,

we will consider that $information, if the array you've specified

<?php 
// We consider by default the current page as 1
$current_page = (isset($_GET['page']) ? (int)$_GET['page'] : 1);
// As we are using an unsorted array, and we want to make sure we pick the right container, we will decrecease it by 1, so we can get the stored array element in 0
$current_page -= 1;

$information = array();// You know what
$used_information = array();// these are the entries which we will explain

$used_information = array_slice($information, $current_page, 1);

// Used Information : 
var_dump($used_information);

?>
Robert1995 22 Light Poster

Please Design you table in MySQL Workbench, I bet most of the people here will really appreciate this and will actually be able to help you.
I will personally come back in one hour, if you provide more information I'll help you out with an explication how to do it and code example.

Robert1995 22 Light Poster

Try sending files trough SMTP, here's a tip http://rusuandreirobert.com/blog/2012/05/swift-mailer-quick-usage/ .
For basic emails without attachements that should do, but Swift Mailer supports sending emails with files, so just edit my class for your needs

Robert1995 22 Light Poster

name="upload"

remove that from form params.
Not sure if this is the problem, but worth a try

Robert1995 22 Light Poster

Let's make it the easy way.. Non case-sensitive

$text = "This is a kickass day.Damn...What a Day !";
$needle = "Day";
strtolower($text);
strtolower($needle);
$tokens = explode($needle, $text);
$found = count($tokens);

So $found is what you want to know, if i understood your problem correctly.
Laters :)

iamthwee commented: no -3
scarcella commented: Very simple, and works! +3