select *,count(pictures.*) as pic_count from categories,pictures where categories.cat_id=pictures.pic_cat and pictures.pic_approved=1 group by cat_id order by cat_name
// En del subselects kan erstattes af anden SQL // Ups: helt utestet
SQLState: 42000 Native Error Code: 1064 [TCX][MyODBC]You have an error in your SQL syntax near '*) as pic_count from categories,pictures where categories.cat_id=pictures.pic_ca' at line 1
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.