Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 21:14

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

Advertisement



PHP MSSQL Insert into problem

Discussion on PHP MSSQL Insert into problem within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1


 
iLogix'.'s Avatar
 
elite*gold: 73
Join Date: Sep 2008
Posts: 2,093
Received Thanks: 160
PHP MSSQL Insert into problem

Hey leute, habe folgendes Problem

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>
hoffe mir kann einer helfen...
iLogix'. is offline  
Reply


Similar Threads Similar Threads
[PROBLEM]Insert 6 skills
12/17/2018 - Metin2 Private Server - 10 Replies
As title I have implemented the 6 th skill in my server, the server side is completed while the client is working me in some trouble ... I get this error SYSERR 2 and ninja skills to P does not have any animation .. . This is the result of the SYSERR 0819 17:43:20314 :: CEffectManager::RegisterEffect - LoadScript(d:/metin2data/season1/effect/pc/warrior /effect/spark.mse) Error 0819 17:43:20317 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/gi_long_sword.mse)...
MSSQL insert into brauche hilfe
01/09/2012 - Flyff Private Server - 0 Replies
weiß einer wie der insert into aussieht für die Datenbank? ic habs zurzeit so: das isn auszug aus der DB INSERT INTO .. ( , , , ,
[Help] MSSQL Problem!!!
11/24/2011 - Flyff Private Server - 5 Replies
Hey, Epvp Einmal Ganz kurz & knapp... Ich habe ein Problem mit MSSQL 2008 64 Bit.. b.z.w .NET Framework 3.5 SP1 ...
MSSQL Problem
01/24/2011 - Flyff Private Server - 2 Replies
Hey Leute , ich habe ein Problem mit MSSQL undzwar wenn ich die Datenbanken aufsetzen will dann kommt immer nur die Character_01_DBF aber nie die Account Login und Ranking DBF Woran könnte dies liegen könntet ihr mit bitte helfen ?
DmN CMS Problem [Mssql]
01/17/2011 - Flyff Private Server - 2 Replies
Ich wollte mir das DmN Flyff CMS installieren, ich hab das bis jetzt ganz gut hinbekommen :D, allerdings hänge ich jetzt bei der Frage nach meinen SQL-Daten, da ich mich immer über Windows-Authentifizierung eingeloggt habe und damit auch meine ODBC konfiguriert habe, so dass ich keine PW oder UID in meinen Server inis stehen habe (So wie Sedrika es in ihren TuTs auch gemacht hat). Jetzt fragt mich die Installations-Datei des CMS nach einem Mssql acc und ich habe kein Plan was ich da...



All times are GMT +1. The time now is 21:14.


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.