Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 17:05

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



MSSQL insert into brauche hilfe

Discussion on MSSQL insert into brauche hilfe within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1


 
iLogix'.'s Avatar
 
elite*gold: 73
Join Date: Sep 2008
Posts: 2,093
Received Thanks: 160
MSSQL insert into brauche hilfe

weiß einer wie der insert into aussieht für die Datenbank? ic habs zurzeit so:

das isn auszug aus der DB

PHP Code:
INSERT INTO [WEBSITE_DBF].[dbo].[web_news]
           ([
title]
           ,[
text]
           ,[
category]
           ,[
author]
           ,[
datetime]
           ,[
views])
     
VALUES
           
(<titlevarchar(50),>
           ,<
texttext,>
           ,<
categoryint,>
           ,<
authorvarchar(50),>
           ,<
datetimedatetime,>
           ,<
viewsint,>) 
ich komme mit den values nich ganz klar... wäre echt freundlich wenn mir einer hilft oder nen insert into '...' VALUES '...' fertig macht, wenns 1x richtig is, dann isses kein problem das öfters zu machen, hoffe man kann mir helfen...

ach und ich will das er über das Web etwas einspeichert in die Datenbank.


das ist meine php datei.
PHP Code:
 <?php
        
if(!isset($_POST['news_bla'])) $_POST['news_bla'] = '';
        
        
odbc_exec($mssql'USE [WEBSITE_DBF]');

        if(isset(
$_POST['news_submit'])) {


                echo 
'</div>';
            } else {
           
odbc_exec($mssql,("INSERT into dbo.web_news (title,text,category,author,datetime,views) VALUES ('$_POST[title]','$_POST[text]','$_POST[category]','$_POST[author]','$_POST[datetime]','$_POST[views]')')
           
                echo '<div class="
success">News erfolgreich gespeichert!</div>';
            }
        
    ?>
    <form method="
post">
        <table>
            <tr>
                <td>Titel:</td>
                <td><input type="
text" name="news_title" maxlength="10" /></td>
            </tr>
            <tr>
                <td>Cagegory (bitte 1 eintragen):</td>
                <td><input type="
text" name="news_category" maxlength="10" /></td>
            </tr>
            <tr>
                <td>Text:</td>
                <td><input type="
text" name="news_text" maxlength="11" /></td>
            </tr>
            <tr>
                <td>Author:</td>
                <td><input type="
text" name="news_author" /></td>
            </tr>
            <tr>
                <td>Datetime:</td>
                <td><input type="
text" name="news_datetime" /></td>
            </tr>
            <tr>
                <td></td>
                <td><input type="
submit" name="news_submit" value="Absenden" /></td>
            </tr>
        </table>
    </form>
</div>
iLogix'. is offline  
Reply


Similar Threads Similar Threads
MSSQL funkt nicht hilfe
11/22/2011 - Flyff Private Server - 3 Replies
Also das hier ist ein screeshot vl kann mir jemand helfen. Es könnte mir auch einer über TV bis nach die Datenbank den Server einrichten wäre nett.
Mssql Probleme hilfe!!!
10/16/2010 - Flyff Private Server - 5 Replies
problem gelöst siehe unten kan geclosed werden
Brauche Hilfe zu MSSQL Management Studio
07/18/2010 - Flyff Private Server - 4 Replies
Hey Community, Ich habe einen eigenen v15 P-Server. Doch jedesmal wenn ich MSSQL Management Studio am nächsten Tag starte und mich einloggen will kommt folgende Meldung: TITEL: Verbindung mit Server herstellen ------------------------------ Es kann keine Verbindung mit 'ANGELIKA-PC\SQLEXPRESS' hergestellt werden. ------------------------------ ZUSÄTZLICHE INFORMATIONEN:
Brauche Hilfe wegen dem MSSQL Management Studio!!!
07/14/2010 - Flyff Private Server - 1 Replies
Hey Community, Ich hab ein kleines Problem: Ich habe mir MSSQL Management Studio installiert (weil ich mir einen eigenen Flyff v15 Server erstellen will). Allerdings habe ich es beim ersten Mal falsch installiert und muss es deswegen neu installieren. Doch jetzt geht es bei einer Stelle nichtmehr weiter. Bei der Stelle, wo ich die Features ankreuzen muss kann ich keine mehr ankreuzen, weil ich schon alle habe. Doch jetzt muss ich 'mindestenz' eins ankreuzen, aber das geht ja nicht, weil ich...
Brauche Dringend Hilfe! Bin Metin spieler aber Brauche Hilfe
12/30/2009 - Metin2 Private Server - 0 Replies
Es gehört hier zwar nicht rein , aber ich weiß keine andere Lösung Ich habe seit einigen Tagen ein Problem... Microsoft Windows Search Protocol Host funktioniert nicht mehr Die Anwendung wird Aufgrund eines Problems nicht mehr richtig Ausgeführt. Ich weiß nicht was das ist und wie ich es loswerde.



All times are GMT +1. The time now is 17:05.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.