Jump to content
MakeWebGames

[mccode] Improved Estate Agents for v2.0


Ghetto

Recommended Posts

  • 2 months later...

Re: [mccode] Improved Estate Agents for v2.0

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/battlefi/public_html/estate.php on line 4

Your current property:

The houses you can buy are listed below. Click a house to buy it.

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/battlefi/public_html/estate.php on line 47

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
  • 1 year later...
  • 12 years later...
8 hours ago, Dustin Rohel said:

Need any sql???

Try:

CREATE TABLE `houses` (
  `hID` int(11) NOT NULL AUTO_INCREMENT,
  `hNAME` varchar(255) NOT NULL DEFAULT '',
  `hPRICE` int(11) NOT NULL DEFAULT '0',
  `hWILL` int(11) NOT NULL DEFAULT '0',
  `hsepics` varchar(255) NOT NULL,
  `sellprice` int(11) NOT NULL,
  PRIMARY KEY (`hID`),
  KEY `hID` (`hID`)
) ENGINE=MyISAM AUTO_INCREMENT=31 DEFAULT CHARSET=latin1;

Link to comment
Share on other sites

6 hours ago, Dustin Rohel said:

Sql didn't work

Okay I will rewrite it

CREATE TABLE IF NOT EXISTS `houses` (
  `hID` int(11) NOT NULL AUTO_INCREMENT,
  `hNAME` varchar(255) NOT NULL DEFAULT '',
  `hPRICE` int(11) NOT NULL DEFAULT '0',
  `hWILL` int(11) NOT NULL DEFAULT '0',
  `hsepics` varchar(255) NOT NULL,
  `sellprice` int(11) NOT NULL,
  PRIMARY KEY (`hID`)

) DEFAULT CHARSET=utf8;

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...