Changeset 421


Ignore:
Timestamp:
Feb 10, 2009, 11:53:03 AM (15 years ago)
Author:
amun
Message:

Přidána možnost napsání přezdívky autora článku

File:
1 edited

Legend:

Unmodified
Added
Removed
  • beta/pages/admin_novinky.php

    r407 r421  
    1111    <td>Nadpis</td>
    1212    <td><input type=\"text\" name=\"nadpis\"></td>
     13  </tr>
     14   <tr>
     15    <td>Autor</td>
     16    <td><input type=\"text\" name=\"autor\"></td>
    1317  </tr>
    1418  <tr>
     
    4246{
    4347  $db -> select_db($db_ghsystem);
    44   $result =  $db -> query("INSERT INTO `articles` ( `id` , `title` , `autor` , `date` , `category` , `text`) VALUES (NULL, '".$_POST["nadpis"]."', '".$_COOKIE["hof-nick"]."', NULL , '".$_POST["kategorie"]."'  , '".$_POST["text"]."');");
     48  $result =  $db -> query("INSERT INTO `articles` ( `id` , `title` , `autor` , `date` , `category` , `text`) VALUES (NULL, '".$_POST["nadpis"]."', '".$_POST["autor"]."', NULL , '".$_POST["kategorie"]."'  , '".$_POST["text"]."');");
    4549  echo "Přidáno !";
    4650}
Note: See TracChangeset for help on using the changeset viewer.