bubu Posted August 21, 2004 Report Share Posted August 21, 2004 Tev tiešām šitāds selekts $sql=mysql_query("SELECT * FROM tabula WHERE time<'$datums'"); neatgriež to ko vajag? time kolonnai ir uzlikts pareizs tips, t.b. DATETIME vai DATE? Un vispār aizmirsu piebilst tas CAST ir pieejams tikai no 4.0 versijas, ja tu lieto 3.x, tad tādas fjas nemaz nav. 3-šai versijai var laikam tikai šādi darīties: SELECT * FROM tabula WHERE time<'$datums' Link to comment Share on other sites More sharing options...
Sliipeetais Posted August 21, 2004 Author Report Share Posted August 21, 2004 (edited) Tiešām, man ir versija 3.x. Tagad viss strādā. Paldies. Edited August 21, 2004 by Sliipeetais Link to comment Share on other sites More sharing options...
Recommended Posts