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?

infusion.php

Asked Modified Viewed 1,524 times
J
jawa
J
jawa 10
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
asked
Newbie

Hello. Help me pls. i do my infusion.php and infusion_db.php to my infusion, all to good, but, not do table (reklama) in my db ... where is error ? maybe here :

Quote

// DB
$inf_newtable[1] = DB_REKLAMA." (
id VARCHAR( 10 ) NOT NULL,
name VARCHAR( 200 ) unsigned NOT NULL,
url VARCHAR( 200 ) unsigned NOT NULL,
imageurl VARCHAR( 200 ) unsigned NOT NULL,
skype VARCHAR( 200 ) unsigned NOT NULL,
mail VARCHAR( 200 ) unsigned NOT NULL,
date int(10) unsigned NOT NULL,
trukme int(10) unsigned NOT NULL,
PRIMARY KEY ( id )
) ENGINE = MYISAM;";



It's my :

infusion_db.php

Quote

<?php
if (!defined("IN_FUSION"wink) { die("Access Denied"wink; }

if (file_exists(INFUSIONS."reklama_panel/locale/".$settings['locale'].".php"wink) {
include INFUSIONS."reklama_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."reklama_panel/locale/Lithuanian.php";
}

if (!defined("DB_REKLAMA"wink) {
define("DB_REKLAMA", "".$db_prefix."reklama"wink;
}


?>


infusion.php

Quote

<?

if (!defined("IN_FUSION"wink) { die("Access Denied"wink; }
include INFUSIONS."reklama_panel/infusion_db.php";

if (file_exists(INFUSIONS."reklama_panel/locale/".$settings['locale'].".php"wink) {
include INFUSIONS."reklama_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."reklama_panel/locale/English.php";
}


// Infusion Information
$inf_title = "Reklamos mainai";
$inf_description = "Reklamos mainai";
$inf_version = "0.1";
$inf_developer = "JaWa";
$inf_email = "jawa@vdnet.lt";;
$inf_weburl = "http://www.sostinespramogos.lt/";

// Infusion Paths
$inf_folder = "reklama_panel"; // The folder in which the infusion resides.
$inf_admin_image = ""; // Leave blank to use the default image.
$inf_admin_panel = "admin.php"; // The admin panel filename if required.

// DB
$inf_newtable[1] = DB_REKLAMA." (
id VARCHAR( 10 ) NOT NULL,
name VARCHAR( 200 ) unsigned NOT NULL,
url VARCHAR( 200 ) unsigned NOT NULL,
imageurl VARCHAR( 200 ) unsigned NOT NULL,
skype VARCHAR( 200 ) unsigned NOT NULL,
mail VARCHAR( 200 ) unsigned NOT NULL,
date int(10) unsigned NOT NULL,
trukme int(10) unsigned NOT NULL,
PRIMARY KEY ( id )
) ENGINE = MYISAM;";

$inf_droptable[1] = DB_REKLAMA;

$inf_adminpanel[1] = array(
"title" => "Reklamos mainai",
"image" => "image.gif",
"panel" => "admin.php",
"rights" => "REK"
);



?>
Edited by jawa on 29-09-2010 11:19,
0 replies

1 post

M
MarcusG
M
Ex Senior Dev.
  • Member, joined since
  • Contributed 182 posts on the community forums.
  • Started 5 threads in the forums
answered
Member

As i already said on mods.php-fusion.co.uk:

Quote

VARCHAR is no numeric field, so "unsigned" for VARCHAR-fields is totally wrong. Also the id should be autoincrement.
0 replies

Category Forum

Installation Issues - 8

Labels

None yet

Statistics

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

2 participants

J
J
jawa 10
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
M
M
Ex Senior Dev.
  • Member, joined since
  • Contributed 182 posts on the community forums.
  • Started 5 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet