Vecteevs Posted April 30, 2010 Report Share Posted April 30, 2010 (edited) Nesaprotu kas par kļūdu, un tomēr vēl šo visu apgūstu! :) http://paste.php.lv/bfc882372b0158e1dcf0276aeff3bd5c?lang=php Edited April 30, 2010 by Vecteevs Quote Link to comment Share on other sites More sharing options...
thesnarkie Posted April 30, 2010 Report Share Posted April 30, 2010 Nesapratu, kas par kļūdu. Quote Link to comment Share on other sites More sharing options...
Vecteevs Posted April 30, 2010 Author Report Share Posted April 30, 2010 man rāda šādi: Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource on line 21 Quote Link to comment Share on other sites More sharing options...
thesnarkie Posted April 30, 2010 Report Share Posted April 30, 2010 Pirms tam nerādīja kodu. Paskatīšos. Quote Link to comment Share on other sites More sharing options...
thesnarkie Posted April 30, 2010 Report Share Posted April 30, 2010 (edited) 21. rindiņa: $row=mysql_fetch_assoc("$result"); Uzliec: $row=mysql_fetch_assoc($result); Edited April 30, 2010 by thesnarkie Quote Link to comment Share on other sites More sharing options...
chizijs Posted April 30, 2010 Report Share Posted April 30, 2010 $row = mysql_fetch_assoc($result); Quote Link to comment Share on other sites More sharing options...
Vecteevs Posted April 30, 2010 Author Report Share Posted April 30, 2010 (edited) Paldies, viss strādā! :) Edited April 30, 2010 by Vecteevs Quote Link to comment Share on other sites More sharing options...
Vecteevs Posted April 30, 2010 Author Report Share Posted April 30, 2010 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource on line 8 $get = mysql_num_rows($q); kas šim vainas? Quote Link to comment Share on other sites More sharing options...
bobsters Posted April 30, 2010 Report Share Posted April 30, 2010 $get = mysql_num_rows($result); Quote Link to comment Share on other sites More sharing options...
briedis Posted April 30, 2010 Report Share Posted April 30, 2010 Kļūda kvērijā, ibio. Ja redz šādu paziņojumu, tad kaut kas nav ar kvērija atgrieztajiem datiem! Quote Link to comment Share on other sites More sharing options...
Kemito Posted April 30, 2010 Report Share Posted April 30, 2010 Man patīk cilvēku loģika, nevis domā bet vienkārši drukā un tad visu sadrukā un brīnās - EU kas tas un kas šitas! Vēl lasīt nemāk. Vaicājumus mysql taisa tādus, ka vispār šajā gadījumā ar num_rows tur joki iet pa gaisu :D 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.