MSSQL insert into brauche hilfe

01/09/2012 14:21 iLogix'.#1
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>