oto kod
<?php { $id = $_GET['edit']; $sql = "SELECT * FROM sites WHERE id = $id"; { echo ' <form action="?akcja=edit_site&&editauto='.$id.'" method="POST"> <table cellspacing="0" summary=""> <tbody> <tr> <td>Nazwa strony</td><td><input name="title" value="'.$row['site'].'"/></td> </tr> <tr> <td>Treść</td><td><textarea name="concent">'.$row['concent'].'</textarea></td> </tr> <tr> <td>Tagi</td><td><input name="tagi" value="'.$row['tags'].'"/></td> </tr> <tr> <td colspan="2">Dodatkowe</td> </tr> <tr> <td>Tytuł strony</td><td><input name="meta_title" value="'.$row['meta_title'].'"/></td> </tr> <tr> <td>Opis strony</td><td><input name="meta_descriptions" value="'.$row['meta_descriptions'].'"/></td> </tr> <tr> <td>Słowa kluczowe</td><td><input name="meta_keywords" value="'.$row['meta_keywords'].'"/></td> </tr> <tr> <td colspan="2"><input type="submit" value="Aktualizuj" /></td> </tr> </tbody> </table> </form> '; } } { include('../functions/nopl.php'); $title = $_POST['title']; $concent = $_POST['concent']; $tags = $_POST['tagi']; $meta_title = $_POST['meta_title']; $meta_descriptions = $_POST['meta_descriptions']; $meta_keywords = $_POST['meta_keywords']; $editauto = $_GET['editauto']; // dodajemy rekord do bazy $zapytanie = "UPDATE `sites` SET `site` = '$title', `concent` = '$concent', `tags` = '$tags', `meta_title` ='$meta_title', `meta_descriptions` = '$meta_descriptions', `meta_keywords` = '$meta_keywords' WHERE id = '$editauto'"; echo 'Nazwa strony - '.$site.'<br />Tagi - '.$tags.'<br />Znaczniki meta:<br />Tytuł - '.$meta_title.'<br />Opis - '.$meta_descriptions.'<br />Słowa kluczowe - '.$meta_keywords.'<br />Treść:<br />'.$concent.''; echo '<a href="?akcja=edit_site&&edit='.$editauto.'">Edytuj ponownie stronę '.$site.'</a><br /><a href="/">Panel administracyjny</a>'; } else ?>
A w tym kodzie jest błąd.
Do formularza wczytują się odpowiednie dane, klikam przycisk aktualizuj, i wyskakuje błąd:
Zapytanie: SELECT * FROM sites --- błąd: Something is wrong in your syntax obok 'meta_title` ='1111111111111', `meta_descriptions` = '111111111111111', `meta_key' w linii 1
Please help me

Dzięki z góry