Results 1 to 8 of 8
Thread: PHP
Hybrid View
-
14th April 2009 19:57 #1
PHP
php
:
, Code, Description i Price ...<?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>';
}
?>
P.S: , ...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
-
14th April 2009 21:16 #2
PHP, ( ).
keys- , .
PHP , , . - , , PHP . assume- , , , .
, . PHP , .
P.S. . , - , Google ( ) .
-
14th April 2009 21:28 #3
-
15th April 2009 01:49 #4
-
15th April 2009 11:18 #5
-
18th April 2009 14:21 #6
-
18th April 2009 14:39 #7
-
18th April 2009 15:34 #8




Reply With Quote
.


.
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in