Today I learned - Page 20
Page 20 of 20 FirstFirst ... 10181920
Results 286 to 292 of 292

Thread: Today I learned

  1. #286
    Senior Member cluelessPHP's Avatar
    Join Date
    Apr 2015
    Location
    Scotland
    Posts
    490
    Today I learned I meet the basic criteria to be an officer in the Royal navy

    Once you had a good excuse, you opened the door to bad excuses ― Terry Pratchett, Thud
    Fresh start
    Github version
    Current date 14/10/17
    Finish date "should be" 14/04/18

    Vote on your preferred indentation method

  2. #287
    Senior Member cluelessPHP's Avatar
    Join Date
    Apr 2015
    Location
    Scotland
    Posts
    490
    Quote Originally Posted by dalecosp View Post
    Not sure I'd call you silly, (I'd say you did quite well here) but if you find a perfect job let us all know.
    Actually I'm starting with some company called CTDI on Monday, it's repairing some things...it's only until January but it seems interesting
    Once you had a good excuse, you opened the door to bad excuses ― Terry Pratchett, Thud
    Fresh start
    Github version
    Current date 14/10/17
    Finish date "should be" 14/04/18

    Vote on your preferred indentation method

  3. #288
    Senior Member cluelessPHP's Avatar
    Join Date
    Apr 2015
    Location
    Scotland
    Posts
    490
    Today I learned/found this nice plugin...seems a bit lazy to use someone else work but it's nice enough

    sweet-modal
    Once you had a good excuse, you opened the door to bad excuses ― Terry Pratchett, Thud
    Fresh start
    Github version
    Current date 14/10/17
    Finish date "should be" 14/04/18

    Vote on your preferred indentation method

  4. #289
    Senior Member cluelessPHP's Avatar
    Join Date
    Apr 2015
    Location
    Scotland
    Posts
    490
    Today I learned...

    PHP Code:
    <?php
    class Database extends PDO

    {
        private 
    $dsn 'localhost';
        private 
    $username 'root';
        private 
    $password '';
        private 
    $dbname 'shops';
        
        public function 
    __construct($dsn$username NULL$password NULL$options = [])
        {
            
    $default_options = [
                
    PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
                
    PDO::ATTR_EMULATE_PREPARES => false,
                
    PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
            ];
            
    $options array_replace($default_options$options);
            
    parent::__construct($dsn$username$password$options);
        }
        public function 
    run($sql$args NULL)
        {
            if (!
    $args)
            {
                 return 
    $this->query($sql);
            }
            
    $stmt $this->prepare($sql);
            
    $stmt->execute($args);
            return 
    $stmt;
        }
    }
    Once you had a good excuse, you opened the door to bad excuses ― Terry Pratchett, Thud
    Fresh start
    Github version
    Current date 14/10/17
    Finish date "should be" 14/04/18

    Vote on your preferred indentation method

  5. #290
    Settled 4 red convertible dalecosp's Avatar
    Join Date
    Jul 2002
    Location
    Accelerating Windows at 9.81 m/s....
    Posts
    8,522
    Quote Originally Posted by cluelessPHP View Post
    Actually I'm starting with some company called CTDI on Monday, it's repairing some things...it's only until January but it seems interesting
    Good to hear this. Seems like a step up from the refuse company ... although if it pays well, any job (well, *almost* any job) is great. Especially compared to being unemployed....
    /!!\ mysql_ is deprecated --- don't use it! Tell your hosting company you will switch if they don't upgrade! /!!!\ ereg() is deprecated --- don't use it!

    dalecosp "God doesn't play dice." --- Einstein "Perl is hardly a paragon of beautiful syntax." --- Weedpacket

    Getting Help at All --- Collected Solutions to Common Problems --- Debugging 101 --- Unanswered Posts --- OMBE: Office Machines, Business Equipment

  6. #291
    Senior Member cluelessPHP's Avatar
    Join Date
    Apr 2015
    Location
    Scotland
    Posts
    490
    Quote Originally Posted by dalecosp View Post
    Good to hear this. Seems like a step up from the refuse company ... although if it pays well, any job (well, *almost* any job) is great. Especially compared to being unemployed....
    And when I said Monday apparently I really meant Tuesday, because they changed my start date and didn't tell me
    Once you had a good excuse, you opened the door to bad excuses ― Terry Pratchett, Thud
    Fresh start
    Github version
    Current date 14/10/17
    Finish date "should be" 14/04/18

    Vote on your preferred indentation method

  7. #292
    Senior Member cluelessPHP's Avatar
    Join Date
    Apr 2015
    Location
    Scotland
    Posts
    490
    Well today I "learned" hmm well still reading this phpdelusions it's probably important I guess...won't stop me *****ing about it as I go
    Once you had a good excuse, you opened the door to bad excuses ― Terry Pratchett, Thud
    Fresh start
    Github version
    Current date 14/10/17
    Finish date "should be" 14/04/18

    Vote on your preferred indentation method

Thread Information

Users Browsing this Thread

There are currently 5 users browsing this thread. (0 members and 5 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •