Warnung: file_put_contents(/home/www/web1/html/php_dev/test.txt) [function.file-put-contents]: failed to open stream: Permission denied in /home/www/web1/html/php_dev/sys/lib.activity.php (Zeile 58)
blutiger anfänger (sql) [Archiv] - PHP-Scripte PHP-Tutorials PHP-Jobs und vieles mehr

- Ad -
php-resource




Archiv verlassen und diese Seite im Standarddesign anzeigen :
blutiger anfänger (sql)


 
boracorba
25-05-2001, 14:04 
 
Ich bin totaler Anfänger was sql/php angeht. Ich hab ein html Formular mit 11 Eingabefeldern und will das diese 11 in sql in einer tabelle gespeichert werden. Ich weis nicht was ich genau in action eingeben muss, kann bitte jemand was starthilfe geben ?

 
hannes
26-05-2001, 12:11 
 
<?
if($submit){
mysql_query("INSERT INTO tabelle (1,2,3,4,5,6,7,8,9,10,11) VALUES ('$1','$2','$3','$4','$5','$6','$7','$8','$9','$10','$11')",$connect);
echo "Gespeichert !";
}else{
?>

<form method="post" action="<?echo $PHP_SELF; ?>">
<input type="text" name="1">
<input type="text" name="2">
<input type="text" name="3">
<input type="text" name="4">
<input type="text" name="5">
<input type="text" name="6">
<input type="text" name="7">
<input type="text" name="8">
<input type="text" name="9">
<input type="text" name="10">
<input type="text" name="11">
<input type="submit" name="submit" value="Speichern">
</form>

<?
}
?>

- -

Alle Zeitangaben in WEZ +2. Es ist jetzt 14:58 Uhr.