Wuu Posted March 12, 2009 Report Share Posted March 12, 2009 (edited) $result = mysql_query('select count(id) from '.$db_prefix.'users where id != 1;'); $total = mysql_fetch_array($result); $pages = $total[0]/12; for ($i = 1; $pages > 1; $pages--) { $pageEcho .='<u><a href=\'index.php?page=users&order=1\'><font size=\'3\'>'.$i.'</font></a></u> '; $i ++; } Kā definēt $pageEcho ,bet lai iekš viņa nekā nebūtu ,jo vēlos izmantot ".="? error_reporting = E_ALL & ~E_NOTICE neapmierina! Edited March 12, 2009 by Wuu Quote Link to comment Share on other sites More sharing options...
Val Posted March 12, 2009 Report Share Posted March 12, 2009 (edited) $blablabla = null; //bubu saka, ka vajag $blablabla = ''; for (...) { $blablabla .= 'dgdgdgdgg'; } Edited March 12, 2009 by Val Quote Link to comment Share on other sites More sharing options...
Wuu Posted March 12, 2009 Author Report Share Posted March 12, 2009 (edited) Nu re nebija nemaz tik grūti :D Un kas ir Notice: Undefined Offset: 0 ? Edited March 12, 2009 by Wuu Quote Link to comment Share on other sites More sharing options...
Mr.Key Posted March 12, 2009 Report Share Posted March 12, 2009 Manuprāt, Notice ir notice, tā nav kļūda un pat ne brīdinājums! ;) Quote Link to comment Share on other sites More sharing options...
bubu Posted March 12, 2009 Report Share Posted March 12, 2009 Nevis null jāliek, bet gan tukšs strings "" kā sākuma vērtība. Undefined offset: 0 nozīmē, ka tu vērsies pie masīva pēc atslēgas 0, taču tur tāda elementa nav. 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.