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 =...
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...
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...
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...
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...
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...
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...
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...
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...
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
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`...
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'])...
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...