Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MySQL][PHP]Problem z zapytaniem DELETE
--antoni--
post
Post #1





Goście







Witam (IMG:style_emoticons/default/exclamation.gif)

Mam problem z zapytaniem DELETE.
Chce usuwać rekordy z bazy w php mam takie zapytanie, ale niestety ciągle wywala Zapytanie niepoprawne. Nie wiem już co może być źle.


  1. include('config.php');
  2. if(isset($_GET['akcja'])){
  3. switch($_GET['akcja']){
  4. case 'usun':
  5. mysql_query('delete from rekrutacja where id='.$f['id'].' limit 1') or die("Zapytanie niepoprawne");
  6. break;
  7. }
  8. }



  1. <a href='zgloszenia.php?akcja=usun&id=".$f['id']."'>USUŃ</a>
Go to the top of the page
+Quote Post

Posty w temacie
- -antoni-   [MySQL][PHP]Problem z zapytaniem DELETE   11.04.2014, 21:23:43
- - Turson   nie where id='.$f['id'].' a w...   11.04.2014, 21:44:44
- - -antoni-   Działa dzięki   11.04.2014, 21:49:23


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 2.10.2025 - 19:46