- Joined
- Apr 12, 2009
- Messages
- 1,259
- Reaction score
- 240
Re: The 'Show Off' thread - Part 2
Hmm, this is my latest job
Should I finish and release this? It's nothing special and obviously not finished yet, I just got bored and started making a Town remake out of my head.
<?php
class dbhandler
{
var $host = "OMAR-PC\SQLEXPRESS";
var $user = "sa";
var $pass = "mazemania1";
var $dbn = "GunzDB";
var $con;
public function __construct()
{
$this->con = mssql_connect($this->host, $this->user, $this->pass) or die("Errors have occured while trying to connect to the MSSQL server, please come back some other time. <br /> If you remain to get this message, please contact an Administrator.");
$this->selectDatabase($this->dbn);
}
public function selectDatabase($dbn)
{
mssql_select_db($dbn);
}
public function query($rows, $table, $conditions = "")
{
$q = mssql_query("SELECT ".((is_array($rows)) ? implode(", ", $rows) : $rows)." FROM ".$table." ".$conditions."");
if(mssql_num_rows($q) < 1)
return false;
$return = array();
for($i = 0; $fetch = mssql_fetch_array($q); $i++)
array_push($return, $fetch[$rows[$i]]);
return $return;
}
}
// $db->query("AID", "Account", "WHERE AID IN (SELECT AID FROM Character WHERE Name = 'Vusion' AND DeleteFlag != 1) ");
$db = new dbhandler();
?>
I'm newcomer to the source code. and first failure here.
I've tried to create moving login screen (like HGG).
but now, It is like Windows 98's maze screen saver.
To view the content, you need to sign in or register
I'm newcomer to the source code. and first failure here.
I've tried to create moving login screen (like HGG).
but now, It is like Windows 98's maze screen saver.
To view the content, you need to sign in or register
I'm newcomer to the source code. and first failure here.
I've tried to create moving login screen (like HGG).
but now, It is like Windows 98's maze screen saver.
To view the content, you need to sign in or register
p.s. :Animation remake, and Character selection screen.
To view the content, you need to sign in or register
It is realy nice outcome
Though I am sure HGG used diffrent method for it when I see your video. Lambda even posted basic formula they used for it if I remember corectly.
To view the content, you need to sign in or register
oh the fun
doest matter though, Delpas way works to even if it is different, just need to change it a little
I hate math. It is very hard and incomprehensible.
I've rewrote everything. Eventually it is not looks like HGG.
but I think it is good than old one...?
To view the content, you need to sign in or register
I hate math. It is very hard and incomprehensible.
I've rewrote everything. Eventually it is not looks like HGG.
but I think it is good than old one...?
To view the content, you need to sign in or register
This a simple of sqlserver class for php i will release this later (i have apply some changes)
View attachment 105063
Sorry, but this the new driver for mssql (SQL server 3.0) i don't use the "mssql_" version (1.0)
And, i don't use PDO because the performance is similar