![]() |
Mysql formular Variable - Druckversion +- MyBB.de Forum (https://www.mybb.de/forum) +-- Forum: Sonstiges (https://www.mybb.de/forum/forum-1.html) +--- Forum: Programmierung (https://www.mybb.de/forum/forum-32.html) +--- Thema: Mysql formular Variable (/thread-15173.html) |
RE: Mysql formular Variable - Marti95. - 30.11.2009 PHP-Code: mysql_query("UPDATE `".$prefix."page` Set `UPDATE_SPALTE!!` = '$UPDATE_INHALT' WHERE id = '$id'") or die("Fehler beim speichern!<br><br>".mysql_error()); RE: Mysql formular Variable - Blackout - 30.11.2009 danke =) no database selected -.- hae? Was bedeutet das mit where id also meine Tabelle hat nur die Spalte Inhalt und die Tabelle heißt news mysql_query("UPDATE `".$prefix."anotherone_nf` Set `News` = '$etwas' WHERE id = '$id'") or die("Fehler beim speichern!<br><br>".mysql_error()); Schreib wenns dir zu viel dämlichkeit is ![]() RE: Mysql formular Variable - Marti95. - 30.11.2009 PHP-Code: mysql_query("UPDATE `News` Set `inhalt` = '$etwas' WHERE inhalt = '$inhalt_old'") or die("Fehler beim speichern!<br><br>".mysql_error()); RE: Mysql formular Variable - Blackout - 30.11.2009 PHP-Code: <html> Da kommt jetzt Fehler beim speichern! No database selected wie kann ich die datenbank auswählen?! Hae der muss doch wissen welche ich nehm ich hab ja nur die verbindung zu der einen DB?!. Die Variable bekomm ich von dem php Formular, mit dem Stimmt alles... RE: Mysql formular Variable - Marti95. - 30.11.2009 PHP-Code: <?php RE: Mysql formular Variable - Blackout - 30.11.2009 jo jetz konnte ich einne eintrag hinzufügen und danach nix mehr ![]() RE: Mysql formular Variable - Marti95. - 30.11.2009 Code: CREATE TABLE IF NOT EXISTS `smarty_s_page` ( ![]() Code: CREATE TABLE IF NOT EXISTS `smarty_s_page` ( Das sollte für dich reichen Einfach im PHPmyAdmin bei SQL einfügen Und ein paar tutorials lessen ![]() RE: Mysql formular Variable - Blackout - 30.11.2009 so also hab ich jetz gemacht.. per phpmyAdmin was reingeschrieben. Und mithilfe der Seite versucht upzudaten...aber iwie ändert das nichts.. Kann das iwie was mit der $id zu tun haben? Die hab ich ja nich bestimmt.? RE: Mysql formular Variable - Marti95. - 30.11.2009 Bitte liess dir ein par Tutorials durch. http://www.schattenbaum.net/php/mstart.php RE: Mysql formular Variable - Blackout - 30.11.2009 des hab ich au scho gfunde...joa habs jetz mal selber geschafftt^^ statt $id --> 1 .. ![]() ![]() ![]() Learning by doing ![]() ![]() ![]() Sorry aber viel dank =) WEnn ich mal gaaanz viel Zeit hab les ich mal n tutorial ![]() jetz noch tinymce einbauen..kann ja jetz nemem so schwer sein ![]() vlt doch ned so ganz einfach ![]() WIE GEIL DANKESCHÖÖÖN! Editor integriert... =) stimmt es so? 'SELECT page_content FROM ccms ORDER BY page_content DESC'; also dass steht "in" dem textfeld von tinymce um den Aktuellen eintrag zu sehen. Ist das so Richtig /Konform? |