Mam problem z zapytaniem do mojej bazy.
Oto wiadomość zwracana przez serwer...
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 'check,day,month,year,date,time_h,title,time_end,time_min) VALUES ('7','asdf','fe' at line 1
Sama kwerenda działa dobrze, bo próbowałem na innym przykładzie... Tylko w tym właśnie mam problemy. Próbowałem różne metody.
A oto kod php:
<?php action::add('cal',array($_POST['id'],$_POST['entry'],$_POST['kind'],$_POST['check'],$_POST['day'],$_POST['month'],$_POST['year'],$_POST['date'],$_POST['time_h'],$_POST['title'],$_POST['time_e_h'].":".$_POST['time_e_m'],$_POST['time_min'])); break; ?>
Metoda action działa dobrze.
<table class=con> <form action="index.php?s=6&where=cal&act=add" method="post"> <input type="hidden" name="where" value="cal"> <input type="hidden" name="id" value="<? echo action::maxi('cal'); ?>"> <input type="hidden" name="day" value="<? print($_GET['day']); ?>"> <input type="hidden" name="month" value="<? print($_GET['month']); ?>"> <input type="hidden" name="year" value="<? print($_GET['year']); ?>"> <input type="hidden" name="date" value="<? print($_GET['year']."-".$_GET['month']."-".$_GET['day']); ?>"> <input type="hidden" name="check" value="0"> <select name="kind" value=""> </select> <tr><td class=form>Czas:</td><td class=form width=80px>Start <input size=2 class=con type="text" name="time_h" value="">:<input size=2 class=con type="text" name="time_min"></td><td class=form>Koniec: <input size=2 class=con type="text" name="time_e_h" value="">:<input size=2 class=con type="text"" name="time_e_m" value=""></td></tr>
help please!