Jump to content

Search the Community

Showing results for tags 'first'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 2 results

  1. So here is the Class: <?php /* * Game Name - Copyright 2013-2014; * This page will be * and open the template in the editor. */ /** * Author of Training * * @author Lingo Muwahaha */ class trainSloppyCheeseMen{ // Set Class public $type; // Unit Type public $amt; // Amount per Unit public $turns; // How much time will it take public $id; // Get user id public function doTrainSloppyCheeseMen(){ /* @var $type type */ if($type=="miners"){ $player = R::load('user', $id); echo $this->id; $new_price = bcmul($amt, 6000); // Create overall price by multiplication } } } ?> And here is the main page that calls the class: <?php require_once("config.php"); include("classes/trainSloppyCheeseMen.class.php"); // Get new Class $trainSloppyCheeseMen = new trainSloppyCheeseMen(); // Get train class $sloppyCheeseLock = new sloppyCheeseLock(); // Get sql inject scrubber. $trainSloppyCheeseMen->type = "miners"; // Type is Miner $sloppyID = 22; die($sloppyID); /* @var $sloppyProtect type */ $sloppyCheeseLock->vulnerable = $_POST['miner_amt']; $sloppyProtect = $sloppyCheeseLock->sloppyUniverseProtect(); $trainSloppyCheeseMen->amt = $sloppyProtect;// Amount to Train $trainSloppyCheeseMen->turns = 1; // How many turns to train these buggers $trainSloppyCheeseMen->plasma = $player->plasma; $trainSloppyCheeseMen->id = $sloppyID; $trainSloppyCheeseMen->doTrainSloppyCheeseMen(); ?> Ok when I try to die the $sloppyID nothing is outputed? This makes no Sense. Am I doing something wrong? I know this is my first time working with classes. If you need the config.php file let me know. Thanks, Lingo
  2. Hello. I've just finished building my first website, and I'd appreciate some critique. Specifically, I'd like to get some feedback on the code (you can find it on the site, under the Source tab). I do realize it's pretty messy, and of poor quality (and not supported by Explorer), and pretty broken too, but I'd like to hear your opinions nonetheless. Here it is: http://www.nocommontheme.co.nf/ I also have a couple question, if you don't mind: On average, how long would it take a professional web developer/programmer to build a website similar to mine? It took me around 3 weeks; is that too long? Generally, how should I structure my website? As in, what should go in the index, and how do I distribute/divide/link the files? In what areas do I need to improve the most? Organization? Based solely on the code I've wrote, would you call me a beginner, or an intermediate? Sorry if these questions sound a little childish, and thanks in advance for any feedback.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.