FT3 Posted November 5, 2010 Report Share Posted November 5, 2010 te tads jautajums kpc kad uzpiezu x vins dzes visus ierakstus , nevis manu izveleto ? <table align="center"border=1> <?php $show = mysql_query("SELECT * FROM mchat ORDER BY id") or die(mysql_error()); while($row = mysql_fetch_array($show)) { echo "<tr><td>"; echo $row['ID']; echo $row['nick']; echo "</td><td>"; echo $row['mess']; echo "</td>"; echo "<TD><form method='post' action=''><input type='submit' name='delete' value='Х' /></form></TD></tr>"; if($_POST['delete']){ mysql_query("DELETE FROM mchat WHERE `ID` = '{$row['ID']}' "); } } ?> </table> Quote Link to comment Share on other sites More sharing options...
briedis Posted November 5, 2010 Report Share Posted November 5, 2010 Nu daa, tu ciklējies visiem ierakstiem cauri un pa vienam dzēs ārā... Quote Link to comment Share on other sites More sharing options...
FT3 Posted November 5, 2010 Author Report Share Posted November 5, 2010 (edited) a ka var ustaisit ar radio selectiem ? Edited November 5, 2010 by FT3 Quote Link to comment Share on other sites More sharing options...
Леший Posted November 5, 2010 Report Share Posted November 5, 2010 EPIC Quote Link to comment Share on other sites More sharing options...
Mr.Key Posted November 5, 2010 Report Share Posted November 5, 2010 <?php print_r($_POST); ?> <html> <head> <title>kukuruku</title> </head> <body> <form method="post"> <input type="checkbox" name="delete[0]"> <input type="checkbox" name="delete[10]"> <input type="checkbox" name="delete[11]"> <input type="checkbox" name="delete[32]"> <input type="checkbox" name="delete[33]"> <input type="submit"> </form> <form method="post"> <input type="checkbox" name="delete[]" value="0"> <input type="checkbox" name="delete[]" value="10"> <input type="checkbox" name="delete[]" value="11"> <input type="checkbox" name="delete[]" value="32"> <input type="checkbox" name="delete[]" value="33"> <input type="submit"> </form> </body> </html> Quote Link to comment Share on other sites More sharing options...
FT3 Posted November 5, 2010 Author Report Share Posted November 5, 2010 krc jau atradu :) Quote Link to comment Share on other sites More sharing options...
Roberts.R Posted November 5, 2010 Report Share Posted November 5, 2010 EPIC +++ :D Patīkama rēka pirms piektdienas tusiņa :D 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.