Login   Register  
PHP Classes
elePHPant
Icontem

File: adminsql.inc

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Voznyak Nazar  >  MVC Membership System  >  adminsql.inc  >  Download  
File: adminsql.inc
Role: Auxiliary script
Content type: text/plain
Description: sql commands for adminstrator handling
Class: MVC Membership System
Membership system using the MVC design pattern
Author: By
Last change:
Date: 2003-12-30 00:08
Size: 515 bytes
 

Contents

Class file image Download
<?

/* 
  @module Escort
*/

/*** add admin */
define('ADMIN_ADD_SQL', <<<EOS
INSERT 
INTO admins (username, password) VALUES (?,?)
EOS
);

/*** remove admin */
define('ADMIN_DELETE_SQL', <<<EOS
DELETE
FROM admins WHERE username = ? AND password = ?
EOS
);

/*** select all admins */
define('ADMINS_SELECT_SQL', <<<EOS
SELECT *
FROM admins
EOS
);

/*** select specified admin */
define('ADMIN_SELECT_SQL', <<<EOS
SELECT *
FROM admins
WHERE username = ? AND password = ?
EOS
);

?>