Jump to content
php.lv forumi

Notice: Use of und....


ellespuika

Recommended Posts

Bija xampp serveris uz windows ar web lapu erroru nebija , web lapu parliku uz linux : ubuntu .

Web lapa iet , bet visos panelos , Notice: Use of undefined constant main_DB_prefix - assumed 'main_DB_prefix' in /opt/lampp/htdocs/includes/main.inc.php on line 50 , 47 , utt

 

/**

 

* @desc Loads and checks different vars when class is initiating

 

* @author Matthias Reuter

 

* @since 2.0

 

* @ignore

 

**/

 

public function __construct(){

 

// check for DB prefix

 

if(main_DB_prefix == ''){

 

define('main_DB_prefix','main_');

 

}

 

$INFO = '';

 

// for compatibility with IP.board

 

define('IPB_THIS_SCRIPT', 'public');

 

// loads all required libraries from IP.board

 

sajas liinijas , kas varētu būt pa vainu ja uz windwos viss gaaja ! bet uz ubuntu met sos

Link to comment
Share on other sites

Nomainiju , vis aizgaja , bet ir velviena tadas pats eerrors rindinjas >>

."topics ORDER BY last_post DESC LIMIT $posts") OR DIE (mysql_error());

 

 

 

echo "<table width='100%' class='posts'>";

 

// Format and display the results.

 

while ( $post = mysql_fetch_array($getposts)) {

 

 

 

$post[full_title] = $post[title];

 

if ($showtopiclength == 1 AND strlen($post[full_title]) > $topiclength) {

 

$post[short_title] = substr($post[full_title],0,$topiclength);

 

$post[short_title] = $post[short_title]."...";

 

}

 

else {

 

$post[short_title] = $post[full_title];

 

}

 

 

 

 

 

 

 

$datefield = date("d.m.Y, H:i:s",$post[last_post]);

 

 

 

echo]

 

te ar kkas nepareiz ?

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.

Loading...
×
×
  • Create New...