php

  1. Markshall

    PHP PDO Singleton usage in other classes

    Right, basically I've got an MySQLi singleton wrapper which I want to use in other classes. It is as follows: <?php class Database extends PDO { public static $instance; private $connection; public function __construct() { $this->connection =...
  2. S

    Recruiting Developer for a retro.

    Summary: Hello, devbest. So basically the title explains it all. I am seeking a habbo retro developer, who's willing to dedicate and be loyal towards the hotel I am creating, however I know most developers like to be paid. Unfortunately I have other things to pay for as in the server for hotel...
  3. Nicholas

    Applicant HTML, PHP, AJAX Developer. CMS Development

    Hi my name is Nicholas English i am extremely experienced in HTML, PHP, AJAX and have a lot of knowledge in javascript, because AJAX is javascript. I can make you hotel 2 times faster on the website side and completely secure. I look at the CMS that are being released. They are not secure and...
  4. R

    NEed help asap with PHP

    Hi, i'am trying to make a login script without mysql and i am using this code on the security.php file that i found on this site. <?php session_start(); $user["admin1"] = "password"; $user["admin2"] = "password"; $user["admin3"] = "password"; if (!isset($_SESSION['logged_in'])) { echo...
  5. S

    [PHP, MySQLi] leHabbo

    Hi everybody, I am excited to announce the close arrival of leHabbo. Prepare yourself, because this next statement is going to be bold: the next biggest CMS to RevCMS, PHPRetro and HoloCMS. On what grounds can I make such a bold claim? Well you see, this CMS has been designed to be lightweight...
  6. L

    [PHP] strings equal but not equalling?

    Hello there, I have this bit of PHP code which grabs a encrypted password from a DB and compares it to what is posted. This sometimes works but mostly won't. Here's the code for the script (ofcourse without database connection): $stmt = $db->prepare('SELECT confirmed,password FROM tbl_users...
  7. Obey

    Show DevBest [PHP] Login & Logout

    This is the first time I've ever used PHP so forgive me for any errors. I gathered a simple login and logout script that DOES need access to your database. I've included a db.php file below so if you don't already have one, make one and include the code below inside. There is only HTML in the...
  8. Revplit

    Show DevBest [HTML] Calculator schript

    Do you need a HTML Calculator? I have the perfect script for you :) Preview: http://revplit.xyz/calculator.php <!-- This Script is from www.revplit.xyz, --> <CENTER> <FORM name="Keypad" action=""> <TABLE> <B> <TABLE border=2 width=50 height=60 cellpadding=1 cellspacing=5> <TR> <TD colspan=3...
  9. Revplit

    Show DevBest [PHP] Calculator Scripts

    Do you need a PHP Calculator? I have the perfect script for you :) Preview: http://revplit.xyz/calculator.php <!-- This Script is from www.revplit.xyz, --> <form action="calculator.php" method="post" id="rekenmachine"> <input name="c1" id="c1" type="text" size="10" /> <label...
  10. Markshall

    [PHP] Change day numbers

    I've googled multiple times for this. Basically I'm developing an app in which I need the week to start on Sunday, not Monday (PHP starts on Monday). Is there any way to modify this in any configuration files or a line of PHP code etc? Any help would be greatly appreciated. Cheers, Mark
  11. FirefighterKyle

    [Help] Php page showing wrong order of ranks

    Okay so I am trying to make a rank page for a game I am playing, I am having a hard time understanding why it shows the wrong ranks when I am calling something else. Here is my code. <?php $rankCount = mysql_num_rows(mysql_query("SELECT * FROM `ranks` WHERE `type` = '1' && `branch`...
  12. FirefighterKyle

    [Fixed] Call to a member function getRankMembers() on a non-object

    Okay so I am trying to implement more OOP, but I am getting this error. Here is the codes I am using final public function Initiate() { global $_CONFIG, $officer, $engine, $core, $template; $this->setParams('gameName', $_CONFIG['game']['name'])...
  13. brsy

    PHP • Creating a number range from an array

    So basically, when someone enters $1.00 into a raffle, they get a ticket per cent entered, in an ascending order. So if user 1 enters $4.31, user 2 enters $1.09, and user 3 enters $6, there would be a total of 1,140 tickets in the raffle. User 1 would have ticket numbers 1 through 431, because...
Top