Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [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
Turson
post
Post #2





Grupa: Zarejestrowani
Postów: 4 291
Pomógł: 829
Dołączył: 14.02.2009
Skąd: łódź

Ostrzeżenie: (0%)
-----


nie where id='.$f['id'].'
a where id='.$_GET['id'].'
Go to the top of the page
+Quote Post
--antoni--
post
Post #3





Goście







Działa dzięki (IMG:style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post

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: 4.10.2025 - 07:28