View Single Post
ישן 04-07-06, 16:55   # 1
Smolf3d
מתאורר / יצא בחוץ
 
מיני פרופיל
תאריך הצטרפות: May 2006
גיל: 38
הודעות: 16

Smolf3d לא מחובר  

עזרה קטנה עם sql

אז ככה,ביגלל שיש לי גירסת mysql 4.0 אז הפונקציה count לא עובדת,אני צריך לפצל ל-2 את הקוד כדי שיעבוד ...

PHP קוד:
select descr
     
image
     
, ( select count(*)
           
from users
          where groups 
groups.id ) as users_in_groups
     
, ( select count(*)
           
from torrents
          where grupa 
groups.id ) as users_in_torrents
  from groups

תודה למבינים ...

Last edited by Smolf3d; 04-07-06 at 17:13..