Christopher: PHP-Anlegen, Neue Datei erstellen nur wie?

Beitrag lesen

Hello thx, meinst du das so!?!??

<?php
// code that will be executed if the form has been submitted:

if ($submit) {

// connect to the database
// (you may have to adjust the hostname,username or password)

MYSQL_CONNECT("localhost","XX","XX");
mysql_select_db("afis");

$data = addslashes(fread(fopen($form_name, "w+"), filesize($form_name)));

$result=MYSQL_QUERY("INSERT INTO menu (art,name,link) ".
"VALUES (
'$form_art',
'$data',
'$form_name',
'$form_link')");

$id= mysql_insert_id();
print "<p>Produkteingabe mit der ID: <b>$id</b> war Erfolgreich <a href=new.php>Zurück zur Eingabe</a>";

MYSQL_CLOSE();

} else {

// else show the form to submit new data:
?>