counteract
Erfahrenes Mitglied
Hallo!
ich weis einfach nicht mehr weiter... Ich kann ausprobieren was ich will dieser Code funktioniert einfach nicht und ich weiß nicht mehr was ich falsch mache.
Warum kommt nichts in der Datenbank an?
Hier der Code:
Ich hoffe ihr könnt mir helfen!
MFG
Counteract
ich weis einfach nicht mehr weiter... Ich kann ausprobieren was ich will dieser Code funktioniert einfach nicht und ich weiß nicht mehr was ich falsch mache.
Warum kommt nichts in der Datenbank an?
Hier der Code:
HTML:
<html>
<head>
<style type="text/css">
<!--
body {
background: url(banner_6-Hintergrund.jpg) repeat-x 0 0;
}
#anmeldeleiste { /* Für nicht-IE-Browser */
position: fixed;
left:0;
right: 0;
bottom: 0;
z-index: 7;
height: 20px;
background: #000;
/*border-top: 3px solid silver; */
}
-->
</style>
<!--[if lt IE 7]>
<style type="text/css">
#anmeldeleiste { /* Für IE */
position: absolute;
bottom:0;
top: expression(document.body.scrollTop + document.body.clientHeight - this.clientHeight);
width: 100%;
width:expression(document.body.clientWidth);
}
</style>
<![endif]-->
<title></title>
<meta name="generator" content="Namo WebEditor">
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<table border="0" width="1000" cellspacing="0" cellpadding="0">
<tr>
<td width="1000"><img src="images/CTban_0.jpg" width="1000" height="112" border="0"></td>
</tr>
<tr>
<td width="1000">
<table border="0" width="1000" cellspacing="0" cellpadding="0">
<tr>
<td width="49"><a href="index.php" target="_self"><img src="images/CTban_C1R2_0.jpg" width="49" height="28" border="0"></a></td>
<td width="67"><a href="branchen.htm" target="_self"><img src="images/CTban_C1R2_1.jpg" width="67" height="28" border="0"></a></td>
<td width="65"><a href="leistung.htm" target="_self"><img src="images/CTban_C1R2_2.jpg" width="65" height="28" border="0"></a></td>
<td width="55"><a href="kunden.htm" target="_self"><img src="images/CTban_C1R2_3.jpg" width="55" height="28" border="0"></a></td>
<td width="69"><a href="bewerber.htm" target="_self"><img src="images/CTban_C1R2_4.jpg" width="69" height="28" border="0"></a></td>
<td width="87"><a href="jobangebote.php" target="_self"><img src="images/CTban_C1R2_5.jpg" width="87" height="28" border="0"></a></td>
<td width="105"><a href="projektangebote.php" target="_self"><img src="images/CTban_C1R2_6.jpg" width="105" height="28" border="0"></a></td>
<td width="58"><a href="kontakt.htm" target="_self"><img src="images/CTban_C1R2_7.jpg" width="58" height="28" border="0"></a></td>
<td width="445"><img src="images/CTban_C1R2_8.jpg" width="445" height="28" border="0"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="1000"><img src="images/CTban_2.jpg" width="1000" height="30" border="0"></td>
</tr>
</table>
<table border="0" width="784" height="781">
<form method="post" action="neuanlage_projektangebot2.php">
<?php
session_start ();
$connectionid = mysql_connect ("localhost", "", "");
if (!mysql_select_db ("", $connectionid))
{
die ("Keine Verbindung zur Datenbank");
}
$_SESSION['pname'] = $_POST['pname'];
$_SESSION['pbeschreibung'] = $_POST['pbeschreibung'];
$_SESSION['pbeginn'] = $_POST['pbeginn'];
$_SESSION['pende'] = $_POST['pende'];
$_SESSION['pstunden'] = $_POST['pstunden'];
$_SESSION['pstundensatz_a'] = $_POST['pstundensatz_a'];
$_SESSION['pberufsform_a'] = $_POST['pberufsform_a'];
$_SESSION['pstandort'] = $_POST['pstandort'];
$_SESSION['pweitere_informationen_a'] = $_POST['pweitere_informationen_a'];
$_SESSION['panzahl_a'] = $_POST['panzahl_a'];
if (isset($_POST['schreiben']))
{
$query = "INSERT into projekt_gep ( pname, pbeschreibung, pbeginn, pende, pstunden, pstundensatz_a, pberufsform_a, pstandort, pweitere_informationen_a, panzahl_a )
VALUES ('" . $_POST['pname'] . "','" . $_POST['pbeschreibung'] . "','" . $_POST['pbeginn'] . "','" . $_POST['pende'] . "','" . $_POST['pstunden'] . "','" . $_POST['pstundensatz_a'] . "','" . $_POST['pberufsform_a'] . "','" . $_POST['pstandort'] . "','" . $_POST['pweitere_informationen_a'] . "','" . $_POST['panzahl_a'] . "')";
mysql_query($query, $connectionid);
mysql_close();
echo '<script language="JavaScript">window.location=("kunden_portfolio.htm");</script>';
}
?>
<tr>
<td width="778" height="24" colspan="2">
<p><img src="neu_pro.gif" width="185" height="30" border="0"><img src="ban.gif" width="615" height="30" border="0"><font face="Arial"></font></p>
</td>
</tr>
<tr>
<td width="778" colspan="2" height="17">
<p><b><font face="Arial" color="#30549E">Projektinformationen</font></b></p>
</td>
</tr>
<tr>
<td width="325" height="11" bgcolor="#CBD4E6">
<b><font size="2" face="Arial" color="#30549E">Projektname:</font></b> </td>
<td width="449" height="11" bgcolor="#CBD4E6"> <? echo $_SESSION['pname'] ?><input type="hidden" name="pname" maxlength="70" value="<? echo $_SESSION['pname'] ?>"></td>
</tr>
<tr>
<td width="325" height="11" bgcolor="#CBD4E6"><b><font size="2" face="Arial" color="#30549E">Projektbeschreibung:</font></b></td>
<td width="449" height="11" bgcolor="#CBD4E6"> <? echo $_SESSION['pbeschreibung'] ?><input type="hidden" name="pbeschreibung" maxlength="1000" value="<? echo $_SESSION['pbeschreibung'] ?>"></td>
</tr>
<tr>
<td width="325" height="11" bgcolor="#CBD4E6"><b><font size="2" face="Arial" color="#30549E">Standort:</font></b></td>
<td width="449" height="11" bgcolor="#CBD4E6"> <? echo $_SESSION['pstandort'] ?><input type="hidden" name="pstandort" maxlength="70" value="<? echo $_SESSION['pstandort'] ?>"></td>
</tr>
<tr>
<td width="325" height="11" bgcolor="#CBD4E6">
<p><font size="2" face="Arial" color="#30549E"><b>voraussichtlicher Projektbeginn:</b></font></p>
</td>
<td width="449" height="11" bgcolor="#CBD4E6"> <? echo $_SESSION['pbeginn'] ?><input type="hidden" name="pbeginn" maxlength="70" value="<? echo $_SESSION['pbeginn'] ?>"></td>
</tr>
<tr>
<td width="325" height="11" bgcolor="#CBD4E6">
<p><font size="2" face="Arial" color="#30549E"><b>vorausschtlisches Projektende:</b></font></p>
</td>
<td width="449" height="11" bgcolor="#CBD4E6"> <? echo $_SESSION['pende'] ?><input type="hidden" name="pende" maxlength="70" value="<? echo $_SESSION['pende'] ?>"></td>
</tr>
<tr>
<td width="325" height="11" bgcolor="#CBD4E6">
<p><font size="2" face="Arial" color="#30549E"><b>Anzahl der geplanten Projektstunden:</b></font></p>
</td>
<td width="449" height="11" bgcolor="#CBD4E6"> <? echo $_SESSION['pstunden'] ?><input type="hidden" name="pstunden" maxlength="70" value="<? echo $_SESSION['pstunden'] ?>"></td>
</tr>
<tr>
<td width="778" height="23" colspan="2" bgcolor="white"><b><font face="Arial" color="#30549E">Angeforderte Mitarbeiter</font></b></td>
</tr>
<tr>
<td width="325" height="11" bgcolor="#CBD4E6">
<p><b><font size="2" face="Arial" color="#30549E">Qualifikation</font></b></p>
</td>
<td width="449" height="11" bgcolor="#CBD4E6"> <? echo $_SESSION['pberufsform_a'] ?><input type="hidden" name="pberufsform_a" maxlength="70" value="<? echo $_SESSION['pberufsform_a'] ?>"></td>
</tr>
<tr>
<td width="325" height="11" bgcolor="#CBD4E6">
<p><b><font size="2" face="Arial" color="#30549E">Anzahl der benötigten Mitarbeiter</font></b></p>
</td>
<td width="449" height="11" bgcolor="#CBD4E6"> <? echo $_SESSION['panzahl_a'] ?><input type="hidden" name="panzahl_a" maxlength="70" value="<? echo $_SESSION['panzahl_a'] ?>"></td>
</tr>
<tr>
<td width="325" height="11" bgcolor="#CBD4E6">
<p><b><font size="2" face="Arial" color="#30549E">Anforderungsprofil</font></b></p>
</td>
<td width="449" height="11" bgcolor="#CBD4E6"> <? echo $_SESSION['pweitere_informationen_a'] ?><input type="hidden" name="pweitere_informationen_a" maxlength="1000" value="<? echo $_SESSION['pweitere_informationen_a'] ?>"></td>
</tr>
<tr>
<td width="325" height="11" bgcolor="#CBD4E6">
<p><font size="2" face="Arial" color="#30549E"><b>Stundensatz</b></font></p>
</td>
<td width="449" height="11" bgcolor="#CBD4E6"> <? echo $_SESSION['pstundensatz_a'] ?><input type="hidden" name="pstundensatz_a" maxlength="70" value="<? echo $_SESSION['pstundensatz_a'] ?>"></td>
</tr>
<tr>
<td width="778" colspan="2" height="28">
<p align="right"><font color="white"><input type="submit" name="schreiben" value="Senden"></font></p>
</form>
</td>
</tr>
<tr>
<td width="778" colspan="2" height="24"><img src="ben_mitar.gif" width="145" height="30" border="0"><img src="ban.gif" width="655" height="30" border="0"></td>
</tr>
<tr>
<td width="778" colspan="2" height="8"> </td>
</tr>
<tr>
<td width="778" colspan="2">
<p><img src="ban.gif" width="800" height="30" border="0"></p>
</td>
</tr>
</table>
<p> </p>
<div align="center">
<div id="anmeldeleiste"><font size="2" face="Arial" color="#CCCCCC">AGB</font></div>
</body>
</html>
Ich hoffe ihr könnt mir helfen!
MFG
Counteract