_PUIKA_ Posted February 11, 2011 Report Share Posted February 11, 2011 (edited) Sveiki. Problēma tāda, ka php izvada kļūdu: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\webserver\wamp\www\cms\login.php on line 29 Lasīju forumos, kas tas ir tāpēc, ka ir nederīga sintakse vai arī izvads ir BOOLEAN, kur tā vietā vajadzētu būt RESOURCE (mainīgais ar saturu = TRUE) Nu vot.. Jau kuro stundu laužu galvu, bet nekādigi netieku galā.. Ceru uz jūsu palīdzību. Re: PHP kods Paldies jau iepriekš! p.s. koda pie query visi mainīgi $email un $passw ir iekš pēdiņām - '$email' - tas arī īsti neko nemaina. Edited February 11, 2011 by _PUIKA_ Quote Link to comment Share on other sites More sharing options...
mickys Posted February 11, 2011 Report Share Posted February 11, 2011 $result = mysql_query($query) or die(mysql_error()); 26. rindiņa Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted February 11, 2011 Report Share Posted February 11, 2011 (edited) // password=$passw // Kljuda ir shajaa sintaksee .. ieteiktu tomer NEIZMANTOT rezervatos vardus lauku nosaukumiem . P.S. kapec gan nenosaukt lauku teiksim DELETE ? vai UPDATE ? (risinajums ) a) parsauc to tabulas lauku svadak b) izmanto `password`='$passw' Edited February 11, 2011 by Grey_Wolf 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.