Everything posted by Geeks
-
Is web format for me?
I would agree with adamsmith, try learnin java, it is extremely powerful and cross-platform
-
Assitance?
Good stuff, keep us posted
-
Assitance?
All good this side, sunny and hot Inkscape is a vector program, open source and free. it is not perfect but does the job. personally I use Corel Graphics suite X5 (been using it since version 3) also for layout etc. try Komposer it is pretty good. and for coding try PSPad, highlighted sintax etc. and when developing, use firefox until you are happy then test Internet Explorer.
-
please review
Thanks, was going for a facebook/twitter approach with a signup form on the homepage ? Anyone else think it should go ?
-
please review
Thanks for everyone's input, I have applied some changes, hows it looking ?
-
please review
much better thanks, went with one of those and it worked well, I think
-
Webdesign flop or awaiting its own success?
Hi, I am by noooo means a designer, I am however an end-user, also a developer. but anyways. I this that any site that is not centered is on the wrong path, start by centering you site then get back to us
-
please review
Hi All, I have had this site up for review here before, and got alot of good feedback. I applied much of the advice and would like to know if anyone has any new suggestions ? Thanks in advance http://www.betright.co.za/
-
monday afternoon confusion
forgive my ignorance, but doesn't PDO cover most of this already ?
-
PHP Page Won't Load
try changing strict to transitional on this page as on the previous code you sent
-
PHP Page Won't Load
got me, without being able to get to the page etc. it would be difficult to troubleshoot, what version of IE ?
-
PHP Page Won't Load
chance this to <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> might help
-
PHP Page Won't Load
where is the page ?
-
PHP Page Won't Load
mistake would be harsh, but try to make use of jQuery, it is cross-browser compatible
-
PHP Page Won't Load
Shouldn't need to be removed, IE is a web-devs worst nightmare ! are you using jquery ?
-
PHP Page Won't Load
it is the beast that is IE it is a javascript error most likely, are you using AJAX ?
-
Encryption algorithms
Haha my bad. did a quick replace text before i posted.
-
PHP, MySQL Question
try if($result){ // handle result here }else{ // handle no result here }
-
Encryption algorithms
my little codes class : class codes { public function __cryptMe($string) { $Crypt = hash('sha512',($string)); // first sash the string $Crypt = str_ireplace(array("F","X","N","O","V","V"),"",$Crypt); // random characters are removed, change this $Crypt = hash('sha512',($Crypt)); // hash again return md5($Crypt); // return unique code } public function GeneratePassword($username,$password) { $password = $this->__cryptMe($password.$username); return $this->__cryptMe(md5($password)."fsadfdawe32432fasfsa".md5("$username")); } }
- Assitance?
-
Can't retrieve details via. GET
my 2 cents : <?php // use full opening statement, some servers have issues otherwise and it is only 3 letters // lets do a bit of input checking if( isset($_GET['id']) // is the id actually set ? and // we use and, because all of these critia must be met is_numeric($_GET['id']) // is the id actually a number and // we use and, because all of these critia must be met strlen($_GET['id']) <= 7 // allow for up to 9999999 games not crucial but still nice to limit as much as possible ) { // open if statement // this file is crucial so we use require require_once 'dbsettings.php'; // assume dbsettings.php has an array (named $sqlconf) with database settings in it $gameID = preg_replace('/[^\d]/','',$_GET['id']); // remove anything that is not a digit ; being pedantic but over caution is good $pdo = new PDO('mysql:host='.$sqlconf["host"].';dbname='.$sqlconf['dbase'],$sqlconf["login"],$sqlconf["pass"]); // new pdo instance $stmt = $pdo->prepare("SELECT * FROM `game` WHERE `game_ID` = ? "); // the ? is a place holder for the variable to be passed through $stmt->execute(array($gameID)); // pass the ID to the prepared statement, it replaces the ? $gameSet = $stmt->fetchAll(PDO::FETCH_ASSOC); // fetch an array with the Game's details if(count($gameSet) > 0) { // if there was a result echo '<table border="1"><tr><th>Game Name</th><th>Platforms</th><th>Description</th></tr>'; // single quotes proccess faster foreach($gameSet as $gameRow) { echo '<tr> <td>',$gameRow['gameName'],'</td> <td>'.$gameRow['platform'],'</td> <td>',$gameRow['description'],'</td> </tr>'; // using muliple echo's is slower } echo '</table>'; } else {//if there was no result echo 'No Game with this ID found.'; } }// close If Statement else{ // handle bad inputs echo 'Input Error !'; } include 'close.php'; ?>
-
Assitance?
I would do this : make it a general thing, before each match check that both teams have 16 players, if not assign a random player who is not in there team. players in team each have an id so lets say // array of team's player's IDs $teamOneIDs = array(1454,1232,1111,1456,345,567,876,987,143,654,7643,1234,4646,6542,414); // note only 15 players $teamTwoIDs = array(11454,11232,11111,14156,1345,1567,1876,1987,1143,1654,17643,11234,14646,16542,1414); // note only 15 players a side note, consider that team 1 and team 2 can't have the same players (I would think) or would certain players be available to certain teams ? now we assign a random player to team 1 if(count($teamOneIDs) < 16){ // create the WHERE clause from the array $where = 'WHERE '; foreach($teamOneIDs as $pID){ $where .= ($where != 'WHERE ' ? 'AND ': '').'`id` != '.$pID.' '; } foreach($teamTwoIDs as $pID){ $where .= ($where != 'WHERE ' ? 'AND ': '').'`id` != '.$pID.' '; } // get all players from database that are not assigned to either team as an array // the SQL would be something like : $sql = 'SELECT `id` from `PLAYERS` '.$where.' LIMIT 1'; // execute the SQL using whatever method you perfer, I use PDO, the where would be slightly different // this returns a random id now we assign that id to team 1 $teamOneIDs[] = $returnedID; } // now repeat for team two again it goes back to my earlier sentiment, figure out the logic then the code is easy
-
Assitance?
I would make a retirement age (the player retires at the end of the season) at which point that player is no longer selectable. it is up to managers to manually replace him, else the "manager" side of the game kinda gets lost.
-
Assitance?
I got busy during my reply yesterday, so here is the rest of what I wanted to say you are going about this the right way and don't give up, feel free to PM me anytime
-
Assitance?
HTML - Know this CSS - Know this JQuery = Javascript (Jquery is a Javascript framework) SQL/MySQL <- whats the difference (sorry) - SQL is Structured Query Language it is the language used to query and manipulate your database, mySQL is a type of database PHP - server side coding (your backend essentially) ASP - server side coding (your backend essentially) alternative to PHP AJAX - is more of a concept that a language, it is (in this case) javascript combined with PHP