Skocz do zawartości

ALT

Użytkownicy
  • Postów

    795
  • Dołączył

  • Ostatnia wizyta

Odpowiedzi opublikowane przez ALT

  1. Mam taki kod:

     

    <? php
    $zonk =0;
    $wp =0;
    $wp = fopen('/home/<cenzura>/domains/<cenzura>.eu/public_html/news.txt','r');
    
        while (!feof($op))
        {
        $zonk = fgetcsv($op, 999, "end");
        echo $zonk.'<br><br>';
        }
        fclose($wp);
    ?>

     

    I wywala mi taki błąd:

     

    Parse error: syntax error, unexpected T_VARIABLE in /home/<cenzura>/domains/<cenzura>.eu/public_html/home.php on line 4

  2. Mam takie kody:

     

    //home

     

    <form action="user.php" method="post" >

    <table>

    <tbody>

    <tr>

    <td style="text-align: center; ">

    <span style="font-family:courier new,courier,monospace;">/LOGIN</span></td>

    <td style="text-align: center; ">

    <span style="font-family:courier new,courier,monospace;"><input id="log" name="log" type="text" /></span></td>

    </tr>

    <tr>

    <td style="text-align: center; ">

    <span style="font-family:courier new,courier,monospace;">/PASSWORD</span></td>

    <td style="text-align: center; ">

    <span style="font-family:courier new,courier,monospace;"><input id="pass" name="pass" type="password" /></span></td>

    </tr>

    </tbody>

    </table>

    <p style="text-align: center; ">

    <span style="font-family:courier new,courier,monospace;"><input id="enter" name="enter" type="submit" value="OK" /></span></p>

    </form>

     

    //user.php

     

    <?php

     

     

     

    if ($_POST['send'])

    {

     

    if ($_POST['pass']=='admin' && $_POST['log'])

    {

    echo '/GOOD';

     

    }

    else

    {

    echo '/ERROR: WRONG DATA';

    }

     

     

    }

     

    ?>

     

     

    I ja się pytam czemu nie odczytuje danych z tabeli ._.

×
×
  • Dodaj nową pozycję...