Project Juliet - Source Code [PHP, MySQL]

Page 3 of 3 FirstFirst 123
Results 31 to 44 of 44
  1. #31
    "(still lacks brains)" NoBrain is offline
    MemberRank
    Sep 2011 Join Date
    United KingdomLocation
    2,658Posts

    Re: Project Juliet - Source Code [PHP, MySQL]

    Quote Originally Posted by Kryptos View Post
    You don't know OOP? 0_o

    Then why is that snippet in a construct?
    Jonty advised it, as I said in my Development thread:

    1. I am very tired
    2. I am going to be taking ideas you guys have told me
    3. Whatever else I said...

  2. #32
    The one and only! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    Re: Project Juliet - Source Code [PHP, MySQL]

    You can do $db = new mysqli("hostname","username","password","password","port"); in global.php if you cant be bothered making an MySQL class...

  3. #33
    "(still lacks brains)" NoBrain is offline
    MemberRank
    Sep 2011 Join Date
    United KingdomLocation
    2,658Posts

    Re: Project Juliet - Source Code [PHP, MySQL]

    I just reviewed the code I did last night, I said to myself - these exact words - "WHAT THE FUCK WAS I THINKING?".

    Going to fix up all of the shit I did last night.

  4. #34
    hoi ik ben cool Merijn is offline
    MemberRank
    Dec 2009 Join Date
    The NetherlandsLocation
    492Posts

    Re: Project Juliet - Source Code [PHP, MySQL]

    Looks good nobrain, i laughed at this:

    Code:
     *      public function __construct($hostname, $username, $password, $database) ... JONTEH BOYYYYYY

  5. #35
    "(still lacks brains)" NoBrain is offline
    MemberRank
    Sep 2011 Join Date
    United KingdomLocation
    2,658Posts

    Re: Project Juliet - Source Code [PHP, MySQL]

    Quote Originally Posted by MerijnZ View Post
    Looks good nobrain, i laughed at this:

    Code:
     *      public function __construct($hostname, $username, $password, $database) ... JONTEH BOYYYYYY
    Yeah, I think I have swearing problems

  6. #36
    Valued Member AmirZ is offline
    MemberRank
    Jan 2012 Join Date
    128Posts

    Re: Project Juliet - Source Code [PHP, MySQL]

    $db = new mysqli("hostname","username","password","password","port");

    Double password?

  7. #37
    "(still lacks brains)" NoBrain is offline
    MemberRank
    Sep 2011 Join Date
    United KingdomLocation
    2,658Posts

    Re: Project Juliet - Source Code [PHP, MySQL]

    Quote Originally Posted by AmirZ View Post
    $db = new mysqli("hostname","username","password","password","port");

    Double password?
    Shoot me, I was tired don't expect anything decent at late time in the night lol.

  8. #38
    [̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅] leenster is offline
    MemberRank
    May 2008 Join Date
    KanaadaLocation
    992Posts
    Quote Originally Posted by AmirZ View Post
    $db = new mysqli("hostname","username","password","password","port");

    Double password?
    That's how secure this is....
    Posted via Mobile Device

  9. #39
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    Re: Project Juliet - Source Code [PHP, MySQL]

    Quote Originally Posted by AmirZ View Post
    $db = new mysqli("hostname","username","password","password","port");

    Double password?
    I think he means

    PHP Code:
    $db = new mysqli("hostname","username","password","database"); 
    PHP: mysqli::__construct - Manual

  10. #40
    Account Upgraded | Title Enabled! SpazzEmu is offline
    MemberRank
    Jun 2010 Join Date
    Warwick, UKLocation
    444Posts

    Re: Project Juliet - Source Code [PHP, MySQL]

    Quote Originally Posted by djboetz View Post
    I'm so tired of this. Everyone on RaGEZONE only release not finished and shit Emulators. Can you please be the first that release a stable Emulator with everyhthing fixed?
    It's people like you who make developers leave, the negative types, Most developers have gone private due to the nagging noobs, I made all my stuff private a long time ago (although if you know the name of my latest project google can find a copy of the Jar)

    @Ontopic
    I've had a very quick read of the code looks promising, will be checking progress every now and then.


    Quote Originally Posted by AmirZ View Post
    $db = new mysqli("hostname","username","password","password","port");

    Double password?
    It's an easy error, should still work if your password and database name are the same, I hope it's not :P
    Last edited by SpazzEmu; 25-01-12 at 06:26 PM.

  11. #41
    "(still lacks brains)" NoBrain is offline
    MemberRank
    Sep 2011 Join Date
    United KingdomLocation
    2,658Posts

    Re: Project Juliet - Source Code [PHP, MySQL]

    Here's the new Build 2 core - also posted on Development thread:
    PHP Code:
    <?php
    /*         __      ___      __ 
     *        / /_  __/ (_)__  / /_
     *   __  / / / / / / / _ \/ __/
     *  / /_/ / /_/ / / /  __/ /_  
     *  \____/\__,_/_/_/\___/\__/  
     * Copyright (c)2012 Ashley Davidson
     * 
     * http://jokohost.com
     */

    class JulietCore {
        
        public function 
    HashMyAss($password$salt$hash) {
            return 
    $hash($password $salt);
        }
        
        public function 
    SecureMe($var) {
            return 
    mysql_real_escape_string(stripslashes(htmlspecialchars($var)));
        }
        
        public function 
    CheckInstall() {
            
    $installpath "/install";
            
            if (
    file_exists($installpath)) {
                
    $this->ThrowError("Install path exists! If you have used the install, please delete the file!");
            }
        }
        
        public function 
    ThrowError($error) {
            die(
    "System Error -> " $error);
        }
        
        public function 
    SystemInfo() {
            
    $version "Build 2";
            
            return 
    "Powered by Project Juliet " $version;
        }
    }
    ?>

  12. #42
    The one and only! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    Re: Project Juliet - Source Code [PHP, MySQL]

    I made a typing mistake, I meant this:

    $db = new mysqli("hostname","username","password","database","port");

  13. #43
    swagggggg Livar is offline
    MemberRank
    Oct 2008 Join Date
    United KingdomLocation
    2,272Posts

    Re: Project Juliet - Source Code [PHP, MySQL]

    can we all start putting them in PHP boxez pls.

    anyway, i'd suggest you to use mysql, but if your confident with mysqli go ahead.

  14. #44
    "(still lacks brains)" NoBrain is offline
    MemberRank
    Sep 2011 Join Date
    United KingdomLocation
    2,658Posts

    Re: Project Juliet - Source Code [PHP, MySQL]

    ooo, ignore my development thread post about going back to MySQL! Sticking with MySQLi!!!!

    Quote Originally Posted by PowahAlert View Post
    can we all start putting them in PHP boxez pls.

    anyway, i'd suggest you to use mysql, but if your confident with mysqli go ahead.
    I like to try things I've never done before so there is no harm in trying MySQLi. Pretty sure that there is not much of a difference, apart from MySQLi is more efficient.
    Last edited by NoBrain; 25-01-12 at 06:47 PM.



Page 3 of 3 FirstFirst 123

Advertisement