Recent content by Mac

  1. Mac

    Making "profiles" apon "registering"

    while hes registered his details are in mysql . you need only to make a profile.php Here you go : <?php $name = $_GET["name"] $details = array(); $query = mysql_query("SELECT * FROM users WHERE username='".$_GET["name"]."'"); $query2 = mysql_query("SELECT * FROM users"); $rowshow =...
  2. 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...
  3. Mac

    Show DevBest [PHP] Facebook Font Generator

    I love this , just one "fix" : when you do if $_POST["submit"] set your input value $_POST["text name"] , so for example in the input says facebook and then when they generate in the input will be their text that they put before I hope you understand me !
  4. Mac

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

    Okay ! I added the check thing , now it's done , thank you for support!
  5. Mac

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

    Actually you don't understand it! It works with FORM ! UNDERSTOOD ? We don't need to check if get is numeric if the input in the form should be numeric ! :@ and yeah , ill make the code : <?php /* A simple PHP game programmed by Mac */ $game = array(); $game["number"] = $_GET["number"]...
  6. Mac

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

    ehmm! What am i saying ? OBV it can , but users are not going to set the number that way! It will be with a form , in the form they can't enter a text ! Look at the code before saying "newbie" no offence . and yeah , who is going to use firebug and other things for this thing ? LOL!
  7. Mac

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

    In the input , nah you can't! The user won't set $_GET his self . In the form the $_GET can't be text! the input type is numeric!
  8. Mac

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

    X1M! i haven't done the thing to check if $_GET is numeric because the in the input you cannot put text ! So the $_GET is obv numeric . That's why ! And yeah thanks!
  9. Mac

    [Service] Coding Commands [Service] Holograph

    2 styles of rooms in one room , so peoples would do : :changeRoomStyle and they will set their room in other style . I don't know if you get me . so 2 rooms in one room! So for example if they want to do a FF they set room , and then they do :changeRoomStyle and then they set room for CC .
  10. 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"])...
  11. Mac

    [PHP]Help [OOP]

    Yeah , i just wanted to make it OOP . So code is right ? Thank you for testing! Please close thread!
  12. Mac

    [PHP]Help [OOP]

    uberCMS ? 1. thats not habbo , 2. obv you need this when you are working with classes!
  13. Mac

    [PHP]Help [OOP]

    @Kryptos { Yeah , i know i just wanted to make it OOP , and yeah i never seen a people checking 34-line code in less than 1 minute! no offence . }
  14. 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...
  15. Mac

    [PHP] Update Tables using forms.

    <?php /* A simple motto change programmed by Mac for powahcoder */ $actual_motto = mysql_query("SELECT motto FROM users WHERE username='".$_SESSION["username"]."'"); # If your query is not so , then change it! $new_motto = $_POST["motto"]; if($_POST["submit button name"]): # Change submit...
Top