Jump to content
php.lv forumi

palīdziet


falck3

Recommended Posts

Lietoju šo

 

SELECT * FROM members
ORDER BY `referrals` 
WHERE `id`>2114
 
Ir errors :
 
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE `id`>2114 LIMIT 0, 30' at line 3
 
 
 
Doma parādīt sarakstu ar MEMBERS kuru `referrals` kuru `id` ir lielāks kā 2114
 
bez ORDER BY `referrals` viss ir ok bet tā nesanāk
 
ko daru nepareizi??
 
Paldies
Edited by falck3
Link to comment
Share on other sites


Username	Referrals
Admin	        2
f1stptcupdate	9
AIS01	        1
elena075	12
InternsLink	1
viking88hp	7
kelly998888	99 

Ir tā man vaig lai tabulā "Referrals" (tas cipars ir kopējais skaits) skaitu veidotu no useriem kuru id ir lielāks kā 2114

 

 

Edited by falck3
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...