![]() |
![]() |
-Wieviór- |
![]()
Post
#1
|
Goście ![]() |
jakie byłb by zapytanie do bazy danych skoro chce nie dodać nowy rekord tylko zamienić ostatni? Czyli wymazać tamten i wgrać nowy tak jakby... (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)
|
|
|
![]() |
-Wieviór- |
![]()
Post
#2
|
Goście ![]() |
[php:1:03fbecf2d0]<?php
<form action="" method="POST"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td><p>Gole gospodarzy:</td> <td><p>Gole gości:</td> </tr> <tr> <td><input name="hgol"></td> <td><input name="agol"></td> </tr> </table> <input type="submit" name="submit" value="Wyślij"> </form> <? if($_POST['submit']){ $sql= "UPDATE live SET hgol='".$_POST['hgol']."', agol='".$_POST['agol']."'"; mysql_query($sql) or die(mysql_error()); } ?>[/php:1:03fbecf2d0] Taki błąd: Duplicate entry '0' for key 1 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 14.10.2025 - 05:42 |