PHP Classes

File: install.php

Recommend this page to a friend!
  Classes of Mohammed Cherkaoui  >  Simple Hook and Plug-ins System (XML)  >  install.php  >  Download  
File: install.php
Role: Auxiliary script
Content type: text/plain
Description: setup file(mysql)
Class: Simple Hook and Plug-ins System (XML)
Extend class functionality with code define in XML
Author: By
Last change:
Date: 7 years ago
Size: 796 bytes


Class file image Download

@mysql_connect('localhost', 'root', '');
mysql_select_db('Put here the dabase name');

mysql_query("drop table if exists products");
create table products(
productid int(10) unsigned not null auto_increment,
title varchar(100) not null,
version varchar(100) not null,
url varchar(100) not null,
description text,
installcode text,
unistallcode text,
PRIMARY KEY (productid)
) or die(mysql_error());

mysql_query("drop table if exists plugins");
create table plugins(
pluginid int(10) unsigned not null auto_increment,
productid int(100) not null default '0',
place varchar(100) not null,
title varchar(100) not null,
phpcode text,
status int(100) not null default '0',
PRIMARY KEY (pluginid)
) or die(mysql_error());