kostenloser Webspace werbefrei: lima-city


mistake appear on operation?

lima-cityForumProgrammiersprachenPHP, MySQL & .htaccess

  1. Autor dieses Themas

    hpessmsncom

    hpessmsncom hat kostenlosen Webspace.

    <?
    $subject=$rows[1];
    $i=15;

    if (strlen($subject)>$i)
    {
    $sub=substr($subject,0,$i)
    echo "$sub";
    }
    else
    {
    echo "$subject";
    }
    ?>

    this is that one passage omits the code demonstrating information's , seem to have no mistake , it is operation not to come out always saying echo \"$sub\"; having a mistake but,
  2. Diskutiere mit und stelle Fragen: Jetzt kostenlos anmelden!

    lima-city: Gratis werbefreier Webspace für deine eigene Homepage

  3. n********r


    <?
    $subject=$rows[1];
    $i=15;

    if (strlen($subject)>$i)
    {
    $sub=substr($subject,0,$i)
    echo "$sub";
    }
    else
    {
    echo "$subject";
    }
    ?>

    this is that one passage omits the code demonstrating information's , seem to have no mistake , it is operation not to come out always saying echo \"$sub\"; having a mistake but,


    test it so:

    <?php
    $subject=$rows[1];
    $i=15;
    
    if (strlen($subject)>$i)
    {
    $sub=substr($subject,0,$i)
    echo $sub;
    }
    else
    {
    echo $subject;
    }
    ?>

  4. this is that one passage omits the code demonstrating information's , seem to have no mistake , it is operation not to come out always saying echo \"$sub\"; having a mistake but,

    There ist a error message from your PHP interpreter?
    In general please post the Error message of the PHP interpreter.
    Cause it's much easyer if we'd know exactly which error occures.

    I've found the failure
    $sub=substr($subject,0,$i); <<<<< this line needs a Semicolon

  5. Diskutiere mit und stelle Fragen: Jetzt kostenlos anmelden!

    lima-city: Gratis werbefreier Webspace für deine eigene Homepage

Dir gefällt dieses Thema?

Über lima-city

Login zum Webhosting ohne Werbung!