You are not logged in.
Dear visitor, welcome to Aqua Computer Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
TrOuble
God
Quoted
You have an error in your SQL syntax near '.30, 00.3001.00, 01.0001.30, 01.3002.00, 02.0002.30, 02.3003.00, 03.0003.30, 03.' at line 2
TrOuble
God
Quoted from "elbarto`"
da steht line2, line2 is ne include datei, was steht da drin?
bzw versuch mal solche '' anstatt diesen ""
btw: noch umständlicher konntest du die tabelle net gestalten? ;D
TrOuble
God
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<?php include "cfg/mySQL_conf.php"; error_reporting(E_ALL); @mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS) OR die("Keine Verbindung zur Datenbank. Fehlermeldung:".mysql_error()); mysql_select_db(MYSQL_DATABASE) OR die("Konnte Datenbank nicht benutzen, Fehlermeldung:".mysql_error()); $sql = "INSERT INTO montag ('".$_POST['tabellenName']."') VALUES ( '".addslashes(htmlspecialchars($_POST['name']))."', NOW() )"; mysql_query($sql) OR die(mysql_error()); echo "<h4 align=\"center\">".$_POST['typ']." Eingetragen!</h4><br \>\n"; echo "<h4 align=\"center\"><a href=\"index.html\">Zurück zum Adminbereich</a></h4>\n"; ?> |
TrOuble
God
![]() |
Source code |
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 |
<?php include "cfg/mySQL_conf.php"; error_reporting(E_ALL); @mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS) OR die("Keine Verbindung zur Datenbank. Fehlermeldung:".mysql_error()); mysql_select_db(MYSQL_DATABASE) OR die("Konnte Datenbank nicht benutzen, Fehlermeldung: ".mysql_error()); if(!isset($_POST['tabellenName'], $_POST['name'])) { die("Bitte Benutzen sie das Formular!"); } if(trim($_POST['name']) == "") { die("Du musst einen Namen auswählen!"); } if(trim($_POST['tabellenName']) == "") { die("Du musst eine Uhrzeit auswählen!"); } $sql = "UDAPTE montag ".$_POST['tabellenName']." = ".$_POST['name']." "; mysql_query($sql) OR die(mysql_error()); echo "<h4 align=\"center\">Danke ".$_POST['name'].", für deinen Eintrag in Sendeplan !</h4><br \>\n"; echo "<h4 align=\"center\"><a href=\"index.php\">Zurück zum Adminbereich</a></h4>\n"; ?> |
crushcoder
God
Gott hat die Welt ja nur in sieben Tagen erschaffen können, weil es keine installierte Basis gab.
-