OOP help


Posted on 16th Feb 2014 07:03 pm by admin

okay so i have a class im making it has everything setup i just need to randomize the 2 variables and return which variable that was randomized and output it.


Code: <?php
class hit_chance {
protected $character_miss,$character_attack;


public function __construct($icharacter_miss,$icharacter_attack){
$this->character_miss =$icharacter_miss;
$this->character_attack =$icharacter_attack;

//randomize and output below
}
}?>

No comments posted yet

Your Answer:

Login to answer
294 Like 25 Dislike
Previous forums Next forums
Other forums

Encrypt php code?
Is it possible to encrypt php code in files,
so that it displays a load of unreadable characters

url- go to webpage
i have an input text field and submit button.

how do i make the url entered into the textfiel

Class not found error
I am getting Class 'index' not found in Eval function:

//write config

$pat

split string
Hi all

i have some names (imploded by comma):
Code: toronto,paris,madrid
Now, i would

Upload, SSL and more php help
I recently just installed a ssl cert and do i use https for the whole site or just for the checkout.

SQL Injection
In my attempts to protect my database from mySQL injection I have created another problem for myself

MASS PM
Hello all, I'm trying to send mass private messages to users in my database but keep getting an erro

please help
HTML Code:

Code: <span id="ctl00"><span>

Links not updating
I'm trying to fuel a simple navigation system for a news section. It works fine when it comes to ret

Error In Syntax
I got this error:

Code: Parse error: syntax error, unexpected '>' in /home/bucket/publ

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash