Membership is FREE, giving all registered users unlimited access to every DNForum feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

Any MySQL expert here?

Status
Not open for further replies.

Johnn

Level 14
Legacy Exclusive Member
Joined
Apr 13, 2004
Messages
15,995
Reaction score
1,420
solved
 
Last edited:

katherine

Country hopper
Legacy Exclusive Member
Joined
Jul 9, 2005
Messages
8,427
Reaction score
1,291
Do you have an error running this code ? Which version of mysql ?
 

Johnn

Level 14
Legacy Exclusive Member
Joined
Apr 13, 2004
Messages
15,995
Reaction score
1,420
solved by katherine
 
Last edited:

katherine

Country hopper
Legacy Exclusive Member
Joined
Jul 9, 2005
Messages
8,427
Reaction score
1,291
It's the first statement that must be producing the error. Best is to execute statements one by one in phpMyAdmin for example in order to trace problems.

Try this:
Code:
CREATE TABLE  `dsp_purchases` (
  `ID` int(11) NOT NULL auto_increment,
  `domain` int(11) default NULL,
  `price` double(11,2) default NULL,
  `user` int(11) default NULL,
  `data` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL default '1',
  PRIMARY KEY  (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;

If it works the remaining create table statements should be adapted too.
 
Status
Not open for further replies.

Who has viewed this thread (Total: 1) View details

Who has watched this thread (Total: 1) View details

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Premium Members

Upcoming events

Latest Listings

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators

Top Bottom