IJJI Web Admin panel add news error!

Results 1 to 3 of 3
  1. #1

    information IJJI Web Admin panel add news error!

    I got the following error When tryin add news and thats not add:


    Here is my news.php:
    PHP Code:
    <?
    if(isset($_POST['submit'])){
        
    $title clean_sql($_POST['title']);
        
    $type clean_sql($_POST['type']);
        
    $text clean_sql($_POST['text']);
        
    $user $_SESSION['UserID'];
        
    mssql_query_logged("INSERT INTO IndexContent ([Type], [User], [Date], [Text], [Title])VALUES($type, '$user', GETDATE(), '$text', '$title')");
        
    msgbox("Added correctly","index.php?do=news");
    }else{
    ?>
    <style type="text/css">
    <!--
    .style1 {color: #FF0000}
    -->
    </style>
    <body bgcolor="#323232">
    <form method="POST" action="index.php?do=news">
    <table width="454" height="100%" border="1" align="center" style="border-collapse: collapse">
      <tr>
        <td width="432" colspan="3">Add news</td>
      </tr>
      <tr>
        <td width="432" align="right"> Title</td>
        <td width="432">&nbsp; </td>
        <td width="432">
          <input type="text" name="title" size="40"></td>
      </tr>
      <tr>
        <td width="432" align="right"> Type</td>
        <td width="432">&nbsp; </td>
        <td width="432">
          <select size="1" name="type">
            <option selected value="1">General announce </option>
            <option value="2">Update announce </option>
        </select></td>
      </tr>
      <tr>
        <td width="432" align="right" valign="top"> Text</td>
        <td width="432">&nbsp; </td>
        <td width="432">
          <textarea rows="8" name="text" cols="35"></textarea></td>
      </tr>
      <tr>
        <td width="432">&nbsp; </td>
        <td width="432">&nbsp; </td>
        <td width="432">&nbsp; </td>
      </tr>
      <tr>
        <td width="432" colspan="3">
          <p align="center">
            <input type="submit" value="Add" name="submit">
        </td>
      </tr>
    </table>
    </form>
    <?
    }
    ?>
    P.S. sorry for my mad english..=/
    Last edited by ThroneX; 26-02-10 at 01:31 PM.


  2. #2
    Member mitor is offline
    MemberRank
    Mar 2007 Join Date
    ItalyLocation
    69Posts

    Re: IJJI Web Admin panel add news error!

    Quote Originally Posted by alish1558 View Post
    I got the following error When tryin add news and thats not add:


    Here is my news.php:
    PHP Code:
    <?
    if(isset($_POST['submit'])){
        
    $title clean_sql($_POST['title']);
        
    $type clean_sql($_POST['type']);
        
    $text clean_sql($_POST['text']);
        
    $user $_SESSION['UserID'];
        
    mssql_query_logged("INSERT INTO IndexContent ([Type], [User], [Date], [Text], [Title])VALUES($type, '$user', GETDATE(), '$text', '$title')");
        
    msgbox("Added correctly","index.php?do=news");
    }else{
    ?>
    <style type="text/css">
    <!--
    .style1 {color: #FF0000}
    -->
    </style>
    <body bgcolor="#323232">
    <form method="POST" action="index.php?do=news">
    <table width="454" height="100%" border="1" align="center" style="border-collapse: collapse">
      <tr>
        <td width="432" colspan="3">Add news</td>
      </tr>
      <tr>
        <td width="432" align="right"> Title</td>
        <td width="432">&nbsp; </td>
        <td width="432">
          <input type="text" name="title" size="40"></td>
      </tr>
      <tr>
        <td width="432" align="right"> Type</td>
        <td width="432">&nbsp; </td>
        <td width="432">
          <select size="1" name="type">
            <option selected value="1">General announce </option>
            <option value="2">Update announce </option>
        </select></td>
      </tr>
      <tr>
        <td width="432" align="right" valign="top"> Text</td>
        <td width="432">&nbsp; </td>
        <td width="432">
          <textarea rows="8" name="text" cols="35"></textarea></td>
      </tr>
      <tr>
        <td width="432">&nbsp; </td>
        <td width="432">&nbsp; </td>
        <td width="432">&nbsp; </td>
      </tr>
      <tr>
        <td width="432" colspan="3">
          <p align="center">
            <input type="submit" value="Add" name="submit">
        </td>
      </tr>
    </table>
    </form>
    <?
    }
    ?>
    P.S. sorry for my mad english..=/
    Same error.

  3. #3
    joe's **** stealhtfire is offline
    MemberRank
    Jul 2008 Join Date
    notwhereiwanttoLocation
    243Posts

    Re: IJJI Web Admin panel add news error!

    look @ funtions.php on line 92



Advertisement