Search results

  1. Mac

    Show DevBest [PHP OOP] Mac's Complete MySQL program

    class.MySQLprogram.php : <?php /*------------------------------------------*\ | Complete MySQL program programmed by Mac | \*------------------------------------------*/ class MySQLPROGRAM { public $mysqlI = array(); # Private informations , you don't need to put anything in the array...
  2. Mac

    Show DevBest [PHP] Simple PHP game ! [Mac]

    <?php /* A simple PHP game programmed by Mac */ $game = array(); $game["number"] = $_GET["number"]; $game["add"] = $_GET["add"]; # You can change this number ! $game["result"] = $game["add"] / 2; if($_GET["submit"]): if($game["number"] and $game["add"])...
  3. Mac

    [PHP]Help [OOP]

    Well , i helped powahcoder with a motto change system , and i wanted to make it OOP so i made it! Anyways i don't have MySQL in my webhost so when i am testing it, it's giving me mysql errors (that's clear!) but i want you to check my code if everything is good , and if there are any other...
  4. Mac

    Show DevBest [PHP]Simple HTML TryIt R1[Mac]

    <?php $code = $_POST['code']; $submited = $_POST['go']; if($submited): if($code): print "<fieldset>".$code."</fieldset><br /><br /><br />"; else: echo "<p>Empty code!</p>"; endif; endif; echo <<< END <form method='post'> <b>Test your html code.</b><br /> <textarea...
  5. Mac

    Show DevBest [PHP]Expanded User Class Program

    <?php class User { public $isBanned = false; public $isLoggedIn = false; public $hasEmptyCredits = false; public $isUsingWhat = false; public $sql = mysql_query("SELECT * FROM users WHERE name='{$_SESSION['name']}'"); public $row = mysql_fetch_array($this->sql); public function...
  6. Mac

    Math task!

    x2 + 1 = 0 x2 = X in power of second! My solution : x2 + 1 = 0; x2 = 0 - 1; x2 = -1; x = square root of -1; x = i (imaginary number); What's your solution ? What you think about that task ? Reply here!
  7. Mac

    Help [Windows 7 Ultimate]

    I am going Personalize > Window Color but then it's showing me that : .. Not the one that should appear . Where can i change my start taskbar color ? Thanks! Much more thanks if you help me!
  8. Mac

    Show DevBest [PHP] Contains function [Mac Product]

    <?php function contains( $a, $b, $c ) { if(isset($a, $b, $c)): if( $c == '1' ): return preg_match( "/" . $a . "/", $b ); else: return preg_match( "/" . $a . "/i", $b ); endif; else: throw new exception('Required fields for this function are not set!'); endif; } echo (...
  9. Mac

    Show DevBest [PHP]Simple MySQL class , you can use it for CMSes using MySQL

    <?php class MySQL { public $host; public $user; public $pass; public $dbname; public function __construct($a, $b, $c, $d) { if(isset($a, $b, $c, $d)): $this->host = $a; $this->user = $b; $this->pass = $c; $this->dbname = $d; else: throw new exception('Required fields are...
  10. Mac

    Show DevBest [PHP]Simple User class[Mac]

    <?php class User { public $isLoggedIn = false; public $isBanned = false; public function Checking() { if(session_is_registered("username") and session_is_registered("password")): $isLoggedIn = true; endif; while($row = mysql_fetch_array(mysql_query("SELECT * FROM users WHERE name =...
  11. Mac

    Show DevBest [Mac]Simple PHP OOP Bank Class

    <?php class BankAccount { public $accountname; public $accountnumber; public $accountmoneys; public function __construct($accname, $accnumber) { $this->accountname = $accname; $this->accountnumber = $accnumber; } public function __changeName($newaccname) {...
  12. Mac

    [PHP]How to show images in PHP without using HTML[Mac]

    Hello , today i will show you how to show images in PHP without using HTML like that : <? echo "<img src='IMAGE LINK'></a>"; ?> That code is still using HTML . Here's the code without HTML (Look at it and then i will explain it!). <? $image = file_get_contents("IMAGE LINK"); echo...
  13. Mac

    [DEV] School Program [PHP OOP]

    [DEV] School Program [PHP OOP, MySQL] This development has been changed because this was going to use flat file database but i changed my mind , so please edit your posted-comments before this edit. PHP-OOP School Program Whats this ? Well i am going to code a OOP PHP School Program . This...
  14. Mac

    [PHP Service] Coding scripts for you ! [MyScripts V2]

    Well i am bored and i wanna code your requests in PHP , HTML and SQL. Limited things : You may request one-file script. Only based on Objects , classes and functions. No CSS. Requested things : Script name. SQL or non-SQL Thank you.
  15. Mac

    Introduction Hello , my new name is Mac.

    Hello peoples again . Actually i am StrongFaith with new name called "Mac". I am a coder (for them that don't know me) . I code Advanced-PHP based on objects , classes and functions . Thank you, Mac.
Top