waplet Posted February 22, 2009 Report Share Posted February 22, 2009 http://paste.php.lv/6a1f002c3f0063cb6a9d0e...5a4a09?lang=php Šāds ir php un mssql kods, bet viņš neko neizvada,;((( es domāju mssql neatšķiras no mysql tik ļoti ,lai visi pro nesaprastu! Quote Link to comment Share on other sites More sharing options...
bubu Posted February 22, 2009 Report Share Posted February 22, 2009 Lūdzu pieliec kļūdu pārbaudi. Tavs kverijis ir sintaktiski nepareizs. Kļūdas paziņojumā izlasīsi, kas ir nepareizs ;) $top_char_info_ = mssql_query($top_char_info_) or die("ERROR: ". mssql_get_last_message()); MSSQL visai ļoti atšķirās no MySQL iespēju ziņā. (un vienmēr, vienmēr, vienmēr vajag pārbaudīt kļūdas, ja nekas neizvadās) Quote Link to comment Share on other sites More sharing options...
waplet Posted February 22, 2009 Author Report Share Posted February 22, 2009 (edited) izvadīja ka LIMIT ir nevietā, novācu limit 5,1.Itkā viss ok , bet kpc viņs izvada kaut kādu DW? http://waplet.oo.lv/index.php?pg=donators es nesaprotu , print "<tr align=\"center\" bgcolor=\"#efefef\"> <td><b>$rank</b></td> <td>$top_char_info[0]</a></td> <td>$top_char_info[1]</td> </tr>"; 1 masīva ,tač sanāk b_kred, bet kpc izvada kaut kādu DW? Edited February 22, 2009 by bubu Quote Link to comment Share on other sites More sharing options...
bubu Posted February 22, 2009 Report Share Posted February 22, 2009 Kas par DW? Ja izselektētajos datos būs DW, tad arī izvadīsies DW. Quote Link to comment Share on other sites More sharing options...
waplet Posted February 22, 2009 Author Report Share Posted February 22, 2009 , bet man iekš columna b_kred , ir man vienīgam skaitlis 200, pārējiem visiem 0 , kpc izvadās kkāds DW ;( Quote Link to comment Share on other sites More sharing options...
bubu Posted February 22, 2009 Report Share Posted February 22, 2009 Kā tu zini, ka tev ir 200, un citiem 0? Quote Link to comment Share on other sites More sharing options...
waplet Posted February 22, 2009 Author Report Share Posted February 22, 2009 ,kā es varu nezināt ,ja pats liku? Quote Link to comment Share on other sites More sharing options...
bubu Posted February 22, 2009 Report Share Posted February 22, 2009 Tas neko nenozīmē. Tikpat labi varēji kautko kautkur līki ielikt (tāpat kā kveriju nemācēji uzrakstīt ;) Atver kādā MSSQL kverija tūlī (komandrindas vai GUI - vienalga) un uzraksti šo pašu selektu, un pārbaudi rezultātu, vai tiešām tur arī nezivadās DW? Quote Link to comment Share on other sites More sharing options...
waplet Posted February 22, 2009 Author Report Share Posted February 22, 2009 Nu skaties :| http://bildem.lv/bildes/5f68d6f14729432dfb8118affea3e7af.png Quote Link to comment Share on other sites More sharing options...
bubu Posted February 22, 2009 Report Share Posted February 22, 2009 Tev tur ir 100, nevis 200 :) Ko tavā php kodā dara 43. rindiņa? Quote Link to comment Share on other sites More sharing options...
waplet Posted February 23, 2009 Author Report Share Posted February 23, 2009 Viss sataisīju, no more help needed! 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.