Jump to content

INSERARE TABELA IN BAZA DE DATE


Marius05

Recommended Posts

Va salut!

 

Gaseste cineva problema la aceasta comanda in baza de de date pentru PS1.4.8 ?

 

$query = 'CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'customerage` (

`id_customer` int(11) NOT NULL,

`name` text,

`name_again` text,

`is_show` int(11) NOT NULL default \'0\',

KEY `id_customer` (`id_customer`)

) ENGINE='.(defined('_MYSQL_ENGINE_')?_MYSQL_ENGINE_:"MyISAM").' DEFAULT CHARSET=utf8';

 

Ma omoara de cateva ore si nu-i dau de cap

 

Va multumesc !

Link to comment
Share on other sites

CREATE TABLE IF NOT EXISTS `ps_customerage` (

`id_customer` int(11) NOT NULL,

`name` text,

`name_again` text,

`is_show` int(11) NOT NULL DEFAULT '0',

PRIMARY KEY (`id_customer`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8

 

 

am incercat pe localhost si merge ...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...