Results 1 to 8 of 8

Thread: PHP

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    It's not Jim Beam! XcArm's Avatar
    Join Date: Aug:2008
    Location:
    Posts: 118

    PHP

    php
    :

    <?php

    $knigite=$_POST['books'];
    $kartofite=$_POST['kartofi'];
    $domatite=$_POST['domati'];
    $produkti=array(
    array(
    Code =>'KNG',
    Description =>'',
    Price =>10),
    array(
    Code =>'DMG',
    Description =>'',
    Price=>6),
    array(
    Code =>'KRF',
    Description =>'',
    Price =>7)
    );
    for($row=0;$row<3;$row++)
    {
    echo '|'.$produkti[$row]['Code'].'|'.$produkti[$row]['Description'].'|'.$produkti[$row]['Price'].'|'.'<br>';
    }
    for($row=0;$row<3;$row++)
    {
    while(list($key,$value)=each($produkti[$row]))
    {
    echo "|$value";
    }
    echo '<br>';
    }
    ?>
    , Code, Description i Price ...

    Notice: Use of undefined constant Code - assumed 'Code' in C:\Sitez\wamp\www\arrays\arraysphp.php on line 14

    Notice: Use of undefined constant Description - assumed 'Description' in C:\Sitez\wamp\www\arrays\arraysphp.php on line 15

    Notice: Use of undefined constant Price - assumed 'Price' in C:\Sitez\wamp\www\arrays\arraysphp.php on line 16

    Notice: Use of undefined constant Code - assumed 'Code' in C:\Sitez\wamp\www\arrays\arraysphp.php on line 18

    Notice: Use of undefined constant Description - assumed 'Description' in C:\Sitez\wamp\www\arrays\arraysphp.php on line 19

    Notice: Use of undefined constant Price - assumed 'Price' in C:\Sitez\wamp\www\arrays\arraysphp.php on line 20

    Notice: Use of undefined constant Code - assumed 'Code' in C:\Sitez\wamp\www\arrays\arraysphp.php on line 22

    Notice: Use of undefined constant Description - assumed 'Description' in C:\Sitez\wamp\www\arrays\arraysphp.php on line 23

    Notice: Use of undefined constant Price - assumed 'Price' in C:\Sitez\wamp\www\arrays\arraysphp.php on line 24
    |KNG||10|
    |DMG||6|
    |KRF||7|
    |KNG||10
    |DMG||6
    |KRF||7
    P.S: , ...

  2. #2
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    PHP, ( ).
    keys- , .
    PHP , , . - , , PHP . assume- , , , .
    , . PHP , .

    P.S. . , - , Google ( ) .

  3. #3
    It's not Jim Beam! XcArm's Avatar
    Join Date: Aug:2008
    Location:
    Posts: 118
    , ...

  4. #4
    دارس وعامل Siemens's Avatar
    Join Date: Jul:2003
    Location:
    Posts: 1,576
    ,
    Code:
    echo '|'.$produkti[$row]['Code'].'|'.$produkti[$row]['Description'].'|'.$produkti[$row]['Price'].'|'.'<br>';
    - :
    Code:
    echo "|{$produkti[$row]['Code']}|{$produkti[$row]['Description']}|{$produkti[$row]['Price']}|<br>";
    . {}, - . ( print "{$var}").

  5. #5
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    echo , , .

  6. #6
    ! vbTheKing's Avatar
    Join Date: Sep:2003
    Location:
    Posts: 4,138
    ?
    ''? * *
    - !
    ...

  7. #7
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    Quote Originally Posted by vbTheKing View Post
    ?
    -, . .NET, StringBuilder, - .

    , , echo- , .

    .

    , , , . , .

  8. #8
    ! vbTheKing's Avatar
    Join Date: Sep:2003
    Location:
    Posts: 4,138
    , .
    ''? * *
    - !
    ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |