FT3 Posted March 1, 2012 Report Share Posted March 1, 2012 (edited) Sveiki , neka nevaru saprast kur kļuda itka visam jabut ok bet neka ! <?php $now = time(); if($_POST['clear']){ echo 'works ?'; mysql_query("DELETE FROM `ct_voted` WHERE `time` < '$now'", $connect)or die(mysql_error()); } ?> <form method='POST'> <input name='clear' type='submit' value='iztirit datubazi'> </form> nekadu kļudu neizmet , tikai to tekstu works ? Edited March 1, 2012 by FT3 Quote Link to comment Share on other sites More sharing options...
Kavacky Posted March 1, 2012 Report Share Posted March 1, 2012 Quote Link to comment Share on other sites More sharing options...
vostro Posted March 1, 2012 Report Share Posted March 1, 2012 Ko tu tur īsti dzēs ārā? Quote Link to comment Share on other sites More sharing options...
FT3 Posted March 1, 2012 Author Report Share Posted March 1, 2012 (edited) man vajad ta Uzspiežu BUTTON Izdzeš visus ierakstus kur time mazaks par tagadejo Edited March 1, 2012 by FT3 Quote Link to comment Share on other sites More sharing options...
Maris-S Posted March 1, 2012 Report Share Posted March 1, 2012 (edited) Nice1, atkarīgs no tā, kas tiek glabāts kolonā time, jo tas varētu būt laiks līdz kuram balsošana ir aktīva, ja protams tur vispār ir balsošanas sistēma, spriežu pēc tabulas nosaukumu ct-voted. Tomēr informācijas ir pārāk maz, lai saprastu kur ir kļūda. Edited March 1, 2012 by Maris-S Quote Link to comment Share on other sites More sharing options...
FT3 Posted March 1, 2012 Author Report Share Posted March 1, 2012 izlabots vajadzeja '$now' nomainit uz {$now} paldies visiem :) 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.