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...
<?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"])...
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...
<?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...
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!
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!
<?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...
<?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 =...
<?php
class BankAccount {
public $accountname;
public $accountnumber;
public $accountmoneys;
public function __construct($accname, $accnumber) {
$this->accountname = $accname;
$this->accountnumber = $accnumber;
}
public function __changeName($newaccname) {...
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...
[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...
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.
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.