Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Array
Hi!!

I have a table with many options from when the user can select them,
after that, his/her selections will be stored in a database.

In the mean time, I want to store his/her selections in an array like
this one:

PN				Desc				Qty
|-----------------------|----------------------|-----------------------|
|-----------------------|----------------------|-----------------------|
|-----------------------|----------------------|-----------------------|

How do I declare Duch an array like this??, let's call it Parts.


Miguel Guirao
Servicios Datacard
www.SIASA.com.mx

Report this thread to moderator Post Follow-up to this message
Old Post
Miguel Guirao
08-27-04 01:56 AM


Re: Array
"Miguel Guirao" <mguirao@acrosoft.net> wrote in message
 news:001701c48bb1$43d01880$0500a8c0@serv
idor.net...
> Hi!!
>
> I have a table with many options from when the user can select them,
> after that, his/her selections will be stored in a database.
>
> In the mean time, I want to store his/her selections in an array like
> this one:
>
>     PN Desc Qty
> |-----------------------|----------------------|-----------------------|
> |-----------------------|----------------------|-----------------------|
> |-----------------------|----------------------|-----------------------|
>
> How do I declare Duch an array like this??, let's call it Parts.
>
>
> Miguel Guirao
> Servicios Datacard
> www.SIASA.com.mx

Hi,

do you mean this:

$parts = array(array('PN' => $PN_value1, 'Desc' => $Desc_value1, 'Qty' =>
$Qty_value1),
array('PN' => $PN_value2, 'Desc' => $Desc_value2, 'Qty' =>
$Qty_value2),
array('PN' => $PN_value3, 'Desc' => $Desc_value3, 'Qty' =>
$Qty_value3)
);

Regards, Torsten Roehr

Report this thread to moderator Post Follow-up to this message
Old Post
Torsten Roehr
08-27-04 01:56 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP DB archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:52 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.