ellespuika Posted December 29, 2010 Report Share Posted December 29, 2010 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 Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted December 29, 2010 Report Share Posted December 29, 2010 (edited) Nevis if(main_DB_prefix == '') bet if(!defined('main_DB_prefix')) + skaties kas ir error reporting -> http://uk3.php.net/m...error-reporting Edited December 29, 2010 by rATRIJS Quote Link to comment Share on other sites More sharing options...
ellespuika Posted December 29, 2010 Author Report Share Posted December 29, 2010 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 ? Quote Link to comment Share on other sites More sharing options...
briedis Posted December 29, 2010 Report Share Posted December 29, 2010 Kā tad būs ar to error reportingu? Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted December 29, 2010 Report Share Posted December 29, 2010 Masīva indeksiem ir jābūt pēdiņās... Quote Link to comment Share on other sites More sharing options...
ellespuika Posted December 29, 2010 Author Report Share Posted December 29, 2010 kursh tur ir massiiva indeks ? Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted December 29, 2010 Report Share Posted December 29, 2010 http://uk2.php.net/manual/en/language.types.array.php Quote Link to comment Share on other sites More sharing options...
ellespuika Posted December 29, 2010 Author Report Share Posted December 29, 2010 pld viss aizgaaja :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.