Pokazuje mi sie taki blad :: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2
I nie wiem co z nim zrobic. Przelecielem po kodzie pare razy ale nie widac zadnych bledow.
Jakby co to kod jest tu ::
<? include ('mysql_connect.php') ;
//Konfiguracja obslugi bledow
ini_set ('display_errors' , 1);
error_reporting (E_ALL & -E_NOTICE);
if (isset ($_POST['send'])) {
include ('mysql_check.php')
}
//Definicja zapytania
$zapytanie = "INSERT INTO linki (link_id, link_url, site_name, site_about)
VALUES (0, '{$_POST['link_url']}', '{$_POST['site_name']}', '{$_POST['site_about']}'";
//Wykonanie zapytania
if (@mysql_query ($zapytanie)) {
print '<p>Link zostal dodany do listy.</p>';
} else {
print'<p>Nie mozna dodac linka.' . mysql_error() . '</p>';
}
mysql_close();
// zamkniecie polaczenia
}
?>
<form action='index.php?show=add_link' method='post'>
<p>Link: <input type='text' name='link_url' size='40' maxsize='50'></p>
<p>Nazwa: <input type='text' name='site_name' size='40' maxsize='30'></p><BR>
<p>Opis: <textarea type='text' name='site_about' cols='41' rows='5'></textarea></p>
<BR><input type='submit' name='send' value='Dodaj'>
</form>
--------------------------------------------------------
prosze o szybka pomoc...