[php/apache/mysql]internal server error

Pagina: 1
Acties:
  • 55 views sinds 30-01-2008

  • EL_Loco
  • Registratie: Oktober 2001
  • Laatst online: 08-11-2023

EL_Loco

alias Haco

Topicstarter
Ik ben bezig met het maken van een catalogus.
Maar nu krijg ik bij elke query die ik maak dit te zien:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, you@your.address and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
dan kijk je in de log:
[Fri Oct 25 14:34:09 2002] [error] [client 127.0.0.1] Premature end of script headers: c:/php4/php.exe
ik had ook nog ergens een guestbook rondzwerven, die geprobeerd, en dat werkte wel :(
ik zal hieronder de scripts nog ff posten:

connect.php
PHP:
1
2
3
4
5
6
<?php
     mysql_connect("localhost", "****", "****") or
             die ("Could not connect to database");
     mysql_select_db("posttrein") or
             die ("Could not select databse")
?>

invoer.php
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?
error_reporting(E_ALL);
include("connect.php");
if ($submit == "Verstuur!")
{
            $query = "insert into catalogus
                   (nr_trein, express_trein, inter_trein, nieuw_item,
                   beschrijving, type_trein, merk)values
                   ('$artikel_nummer', '$beschrijving', '$express_trein',
                   '$inter_trein', '$nieuw_item', '$type_trein', '$merk')"
                   ;
            mysql_query($query) or die (mysql_error());

echo "werkt";
}
else
{
 include("invoerform.php");;
}
?>

en dan nog het form zelf (invoerform.php):
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
include("connect.php");
?>

<form name="invoeren" action="invoeren.php" methode="post">
<table width="75%" border="0">
  <tr> 
      <td width="24%">Artikel nummer</td>
      <td width="29%"> 
        <input type="text" name="artikel_nummer">
      </td>
      <td width="47%">nr_trein</td>
    </tr>
    <tr> 
      <td width="24%">Beschrijving</td>
      <td width="29%"> 
        <textarea name="beschrijving" rows="3" cols="40">Typ hier de beschrijving</textarea>
      </td>
      <td width="47%">beschrijving</td>
    </tr>
  <tr>
      <td width="24%">Trix express</td>
      <td width="29%"> 
        <select name="express_trein">
          <option value="ja">ja</option>
          <option value="nee">nee</option> 
        </select></td>
      <td width="47%">express_trein</td>
  </tr>
  <tr>
      <td width="24%">Trix internationaal</td>
      <td width="29%"> 
        <select name="inter_trein">
          <option value="ja">ja</option>
          <option value="nee">nee</option> 
        </select></td>
      <td width="47%">inter_trein</td>
  </tr>
  <tr>
      <td width="24%">Neuheit</td>
      <td width="29%"> 
        <select name="nieuw_item">
          <option value="ja">ja</option>
          <option value="nee">nee</option> 
        </select></td>
      <td width="47%">nieuw_trein</td>
  </tr>
  <tr>
      <td width="24%">Type</td>
      <td width="29%"> 
        <select name="type_trein">
          <option value="loc">Loc </option>
          <option value="wagon">wagon </option>
          <option value="overig">overig </option>
        </select></td>
      <td width="47%">type_trein</td>
  </tr>
  <tr>
      <td width="24%">merk</td>
      <td width="29%"> 
        <select name="type_trein">
          <option value="trix">Trix</option> 
        </select></td>
      <td width="47%">merk</td>
  </tr>
  <tr>
      <td width="24%"> 
        <input type="submit" name="submit" value="Verstuur!">
</td>
      <td width="29%"> 
        <input type="reset" name="reset" value="Reset">
      </td>
      <td width="47%"></td>
  </tr>
</table>
</form>

kan iemand mij vertellen waarom dit niet werkt :?

rumores non hiatus dremelunt
malleo omnia consentiunt
Lid van het Anti-Jamba front!


  • EL_Loco
  • Registratie: Oktober 2001
  • Laatst online: 08-11-2023

EL_Loco

alias Haco

Topicstarter
|:( laat maar heb het al gevonden dit
<form name="invoeren" action="invoeren.php" methode="post">
moet zijn:
<form name="invoeren" action="invoer.php" methode="post">
kan een modje hier een slotje op doen :?
sorry voor de overlast ;(

rumores non hiatus dremelunt
malleo omnia consentiunt
Lid van het Anti-Jamba front!


  • whoami
  • Registratie: December 2000
  • Laatst online: 19:34
Ok dan. ;)

https://fgheysels.github.io/


Dit topic is gesloten.