Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

I have mistake, writing MOD

Asked Modified Viewed 1,167 times
S
SGT-TURKEY
S
.:: We have success the difficult, impossible that is just takes time ::.
  • Junior Member, joined since
  • Contributed 16 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
asked
Junior Member

I'm codding a php-fusion mod. My infusions_db.php and infusions.php file at the bottom.

infusion_db.php
if (!defined("IN_FUSION")) { die("Access Denied"); }

if (!defined("DB_FIRMAKAT")) {
   define("DB_FIRMAKAT", DB_PREFIX."firmakat");
}

if (!defined("DB_FIRMALAR")) {
   define("DB_FIRMALAR", DB_PREFIX."firmalar");
}

if (!defined("DB_FIRMARESIM")) {
   define("DB_FIRMARESIM", DB_PREFIX."firmaresim");
}


infusions.php
if (!defined("IN_FUSION")) { die("Access Denied"); }

include INFUSIONS."sgt_firmalar/infusion_db.php";


// Infusion general information
$inf_title = "Firma Rehberi";
$inf_description = "Gelişmiş Firma Rehberi";
$inf_version = "1.00";
$inf_developer = "SGT - Php-Fusion";
$inf_email = "info@sinopgrafiktasarim.com";
$inf_weburl = "http://www.sinopgrafiktasarim.com";

$inf_folder = "sgt_firmalar";


$inf_newtable[1] = DB_FIRMALAR." (
  firma_id SMALLINT(5) UNSIGNED NOT NULL auto_increment,
  firma_kat SMALLINT(5) UNSIGNED NOT NULL,
  firma_isim VARCHAR(250) NOT NULL DEFAULT '',
  firma_tel VARCHAR(75) NOT NULL DEFAULT '',
  firma_il VARCHAR(100) NOT NULL DEFAULT '',
  firma_ilce VARCHAR(100) NOT NULL DEFAULT '',
  firma_email VARCHAR(100) NOT NULL DEFAULT '',
  firma_web VARCHAR(100) NOT NULL DEFAULT '',
  firma_yetkili VARCHAR(100) NOT NULL DEFAULT '',
  firma_aciklama text NOT NULL DEFAULT '',
  firma_resim VARCHAR(200) NOT NULL DEFAULT 'yok.png',
  firma_adres VARCHAR(250) NOT NULL DEFAULT '',
  firma_goruntulenme INT(10) UNSIGNED NOT NULL,
  firma_durum VARCHAR(1)  NOT NULL DEFAULT '1',
  firma_map text NOT NULL DEFAULT '',
  PRIMARY KEY  (firma_id)
) ENGINE=MyISAM";

$inf_newtable[2] = DB_FIRMAKAT." (
  firma_kat_id SMALLINT(5) UNSIGNED NOT NULL auto_increment,
  firma_kat_name VARCHAR(250) NOT NULL DEFAULT '',
  firma_kat_resim VARCHAR(250) NOT NULL DEFAULT 'yok.png',
  firma_kat_description TEXT NOT NULL DEFAULT '',
  PRIMARY KEY  (firma_kat_id)
) ENGINE=MyISAM";

$inf_newtable[3] = DB_FIRMARESIM." (
  galeri_id SMALLINT(5) UNSIGNED NOT NULL auto_increment,
  firma_id  SMALLINT(5) UNSIGNED NOT NULL',
  galeri_resim VARCHAR(250) NOT NULL DEFAULT 'yok.png',
  PRIMARY KEY  (galeri_id)
) ENGINE=MyISAM";

$inf_droptable[1] = DB_FIRMALAR;
$inf_droptable[2] = DB_FIRMAKAT;
$inf_droptable[3] = DB_FIRMARESIM;

$inf_adminpanel[1] = array(
   "title" => "Firma Rehberi Yönetim",
   "image" => "firma.png",
   "panel" => "rehber_admin.php",
   "rights" => "SGT"
);


where is my error. When I setup my mod, DB_FIRMARESIM not installing.

Pls, help me!
0 replies

1 post

T
Tyler
T
Tyler 10
Helping, would be pointing you in the right direction, not doing it all for you.
  • Member, joined since
  • Contributed 198 posts on the community forums.
  • Started 3 threads in the forums
answered
Member

You missed somthing :D

Look at this line: firma_id SMALLINT(5) UNSIGNED NOT NULL',
You have a ' at the end...

YOU CAN JUST USE THIS:
$inf_newtable[3] = DB_FIRMARESIM." (
  galeri_id SMALLINT(5) UNSIGNED NOT NULL auto_increment,
  firma_id  SMALLINT(5) UNSIGNED NOT NULL,
  galeri_resim VARCHAR(250) NOT NULL DEFAULT 'yok.png',
  PRIMARY KEY  (galeri_id)
) ENGINE=MyISAM";
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

  • Views 0 views
  • Posts 1 post
  • Votes 0 votes
  • Topic users 2 members

2 participants

T
T
Tyler 10
Helping, would be pointing you in the right direction, not doing it all for you.
  • Member, joined since
  • Contributed 198 posts on the community forums.
  • Started 3 threads in the forums
S
S
.:: We have success the difficult, impossible that is just takes time ::.
  • Junior Member, joined since
  • Contributed 16 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet