<? } else { $comment = $_POST['comment']; $id_n = '11'; $kto = 'upeer'; $tresc = 'mama'; $data = '22'; $godzina = '12'; mysql_query("INSERT INTO `comment` (tresc, id_n, kto, data, godzina) VALUES ('".$comment."', '".$id_n."', '".$kto,"', '".$data."', '".$godzina."')"); } } ?> <form action="" method="post"> <input type="text" size="50" style="height: 100px;" name="comment" size="18" /> <input class="button_1" type="submit" name="oks" value="Dodaj"> </form>
w ktorym wwala mi taki bląd
Warning: mysql_query() expects parameter 2 to be resource, string given in /home/upeer/public_html/music.php on line 345
345 linia to ta z zapytanie mysql