Posts

Showing posts with the label PHP CLASS

Class PHP

require(DIR_WS_CLASSES . 'currencies.php'); require(DIR_WS_CLASSES . 'shipping_new.php'); $currencies = new currencies(); $shipping_new = new shipping_new(); class shipping_new { function get_shipping_address($customerid){ echo $get_address="select * from `address_book` where `customers_id`='$customerid'"; $out_address=mysql_query($get_address); echo $record_address=mysql_fetch_array($out_address); return $record_address; } } $address=$shipping_new->get_shipping_address($_SESSION['customer_id']); ?>

PHP CLASS

class Admin { var $username; var $password; var $newpassword; var $admin_table=ADMIN; var $table; var $static_page_key; var $values; function adminLogin() { global $DB; $username=$this->username; $password=$this->password; $admin_table=$this->admin_table; $admin_login=$DB->getOne("select username from $admin_table where username='$username' and password='$password' and status=1"); if($admin_login == '' || $admin_login == NULL) { return false; } else { $_SESSION['admin_username']=$admin_login; return true; } } function adminChangePassword() { global $DB; $username=$this->username; $password=$this->password; $newpassword=$this->newpassword; $admin_table=$this->admin_table; $admin_login=$DB->getOne("select username from $admin_table where username='$username' and password='$password' and stat...

POPULAR POSTS ::

JOIN QUERY

Add multiple upload box

HTML and PHP INTRODUCTION

The top Web development PHP frameworks

Mobile App Development Trends: Emerging Technologies and Innovations

String Separation