PHP Classes
elePHPant
Icontem

File: adminsql.inc

Recommend this page to a friend!
  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: 16 years ago
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
);

?>