• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

help SQL

lopez65

Member
Joined
May 10, 2012
Messages
294
Solutions
1
Reaction score
16
Location
Barcelona
Someone help me with this, I want to introduce this in the SQL table accounts, but did not add anything, I've tried entering the entire table and adding it to the table, but does not create value

Code:
`flag` varchar(20) NOT NULL,

Code:
CREATE TABLE IF NOT EXISTS `znote_accounts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `account_id` int(11) NOT NULL,
  `ip` int(10) NOT NULL,
  `created` int(10) NOT NULL,
  `points` int(10) DEFAULT 0,
  `cooldown` int(10) DEFAULT 0,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `activekey` int(11) NOT NULL,
  `flag` varchar(20) NOT NULL,   <--------- HERE
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;

it is for the flags of the countries look, but nothing comes out and also gives me this error in characterprofile:
Code:
Notice: Undefined variable: account_data in C:\xampp\htdocs\characterprofile.php on line 31

and this is what is written there:
Code:
<li><font class="profile_font" name="profile_font_country">Country: <?php echo '<img src="\flags\\' . $account_data['flag'] . '.png">'; ?></font></li>

if anyone can help me would be appreciated

Greetings and thanks for reading me

P.D. I use zNote last version.
 
Back
Top