Gints Plivna Posted August 19, 2010 Report Share Posted August 19, 2010 (edited) WHERE cat_id = 'kautkas', cat_id2 = '$kategorija' Nu un kā tad MySQLam būtu jāsaprot tas komats, kā AND vai OR? ;) P.S. Ā es sapratu laikam problēmu - kolonu sarakstā kolonas ir jāatdala ar komatu, bet WHERE klauzā starp diviem nosacījumiem ir jāliek kāds no loģiskajiem operatoriem AND vai OR. Gints Plivna http://datubazes.wordpress.com Edited August 19, 2010 by Gints Plivna Quote Link to comment Share on other sites More sharing options...
daGrevis Posted August 19, 2010 Report Share Posted August 19, 2010 Ir tāda laba lieta kā mysql_error(). =) Quote Link to comment Share on other sites More sharing options...
Ome Posted August 22, 2010 Report Share Posted August 22, 2010 SELECT * FROM kautkaada_tabula WHERE role_id=4 SELECT * FROM `kautkaada_tabula` WHERE `role_id` = 4; 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.