Parašė PikaPika· 2015 Gru. 29 23:12:33
#12
Pakartoti slaptažodį parašė:
SELECT SUM((url1 IS NOT NULL AND url1 <> '') +
(url2 IS NOT NULL AND url2 <> '') +
(url3 IS NOT NULL AND url3 <> '') +
(url4 IS NOT NULL AND url4 <> '') +
(url5 IS NOT NULL AND url5 <> '') +
(url6 IS NOT NULL AND url6 <> '') +
(url7 IS NOT NULL AND url7 <> '') +
(url8 IS NOT NULL AND url8 <> '')
) AS TOTAL FROM lentele WHERE id = '$id';
sėkmės, turėtų veikti.
Dekui kad pabandei padet bet nesuveike :)