Kai: upload einer Bilddatei mit Eintrag in mysql Datenbank

Beitrag lesen

Hallo Zusammen,

bin auf der suche nach einem php script,

der nach einem Bildupload gleich den Pfad zum Bild in meine Mysql Datenbank abspeichert.

Bin schon fast am verzweifeln weiss jemand wo man
so einen script findet ???

oder einfach wie es geht ;-)
bitte helft mir schon mal vielen dank

mfg Kai

hier noch mein angefangener script:
----------------------------------
<?
 include "includes/connect.php";

?>
<html>
<head>
<title>:::www.dym_fun:::</title>
</head>

<? if (isset($Submit)) {
   $sql =" INSERT into gallery(titel, beschreibung) Values ('$neu_titel','$neu_beschreibung')";
   $res = mysql_query($sql);
   if ($res) {
    echo "hinzugefügt";
   }
   else {
    echo "Konnte nicht eintragen :-(</a>";
   }
  }
  else {
  ?>

<body bgcolor="#CCCCCC" text="#000000">
<form action="eintrag.php" method="post" name="form1">
 <table width="75%" border="1" cellspacing="0" cellpadding="0" class="content">
  <tr>
   <td colspan="2">titel:</td>
  </tr>
  <tr>
   <td><input name="neu_titel" type="text" id="neu_titel"></td>
   <td> </td>
  </tr>
  <tr>
   <td>beschreibung</td>
   <td>bilder</td>
  </tr>
   <td><textarea name="neu_beschreibung" type="text" id="neu_beschreibung" cols="45" rows="10"></textarea></td>
   <!-- hier sollen bilder hochgeleden werden !! //-->
   <td><input name="neu_bilder" id="neu_bilder" type="file"></td>
  <tr>
   <td> </td>
   <td> </td>
  </tr>
  <tr>
   <td>
    <input type="submit" name="Submit" value="Abschicken">
    <input type="reset" name="reset" value="reset">
   </td>
   <td> </td>
  </tr>
  <tr>
   <td> </td>
   <td> </td>
  </tr>
 </table>
</form>
</body>
 <?
    }
 ?>
</html>