20. august 2003 - 13:49Der er
11 kommentarer og 1 løsning
vil ikke indsætte i db
hejsa burde det her ikke virker???
her er min form. <FORM action="insert_news.php" method="POST"> <h4>SKRIV TITLE:</h4><INPUT type="text" name="titel" maxlength="30"> <BR> <BR> <H4>SKRIV NYHED:</H4> <BR> <TEXTAREA cols="40" rows="4" name="nyhed" wrap=virtual></TEXTAREA> <BR> <BR>
<INPUT type="submit" name="submit" value="send nyhed"> </FORM> ---------------------------------------------------------- og script <?PHP
include("../dbconnect.php");
if (! empty($_POST['news'])) { mysql_query("INSERT INTO news (titel, nyhed) VALUES('".$_POST['titel']."','".$_POST['nyhed']."')") or die(mysql_error()); } ?>
er det mig der laver en fejl 40 eller hvad?? håber på hjælp :-O
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.