Jump to content
php.lv forumi

Problēma ar mysql_num_rows()


_PUIKA_

Recommended Posts

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 by _PUIKA_
Link to comment
Share on other sites

// 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 by Grey_Wolf
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...