> // From: jas [mailto:[EMAIL PROTECTED]]
> // Sent: Monday, 25 February 2002 5:50 PM
> // To: [EMAIL PROTECTED]
> // Subject: Re: [PHP-DB] Passing contents of array on as variables...
> //
> //
> // Bjorn,
> // I just wanted to thank you for giving me alot of insight
> //
info you want,
not the word "Array")
HTH
beua
// -Original Message-
// From: jas [mailto:[EMAIL PROTECTED]]
// Sent: Monday, 25 February 2002 5:50 PM
// To: [EMAIL PROTECTED]
// Subject: Re: [PHP-DB] Passing contents of array on as variables...
//
//
// Bjorn,
// I just wanted t
pointers let me know
and
> I'll send you some of my code.
>
> Good luck!
>
> -Natalie
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > Sent: Monday, February 25, 2002 1:01 PM
> > To: [EMAIL PROTECTED]
> >
Bjorn,
I just wanted to thank you for giving me alot of insight into what I was
trying to accomplish however, due to time restraints I have decided to do it
a different way by pulling the entries into a select box that a customer can
use to delete the different items. Once again, thanks a ton
Ok, I think I understand what you are talking about. So now I know what I
need to accomplish, and would you happen to know of a good place to learn
about something like this? For some reason this function keeps seeming to
elude me and if you know of a good tutorial on how to accomplish this I
wo
One problem I see is that you are sending all of the values for all of your
fields (except the id field) from the first page to the second page, not just
the ones that are checked, so even if it was working properly, you would get
a list of all items in the table, not just the checked items. Y
$i=0;
while
($car_type[$i],$car_model[$i],$car_year[$i],$car_price[$i],$car_vin[$i]) {
$i ++;
}
Is what I added and this is what is being output to the screen at this
point...
=0; while () { ++; }
now i am still too new to php to understand why it is not putting the
contents of the array into
When you call your $car_type in the second page, you need to set a variable
starting at 0 and call it as $car_type[0] and loop through all of the values
in the array.
ie.
$i=0;
while ($car_type[$i]) {
I have added more code below that should help.
MB
jas <[EMAIL PROTECTED]> said:
> Yeah,
Yeah, tried that and it still isnt passing the contents of the array as a
varible to the confirmation page for deletion. I am at a loss on this one.
<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You didn't add the value part of the hidden element, ie.
>
>
>
You didn't add the value part of the hidden element, ie.
You were naming the field as an array with no value.
if you want to pass this as an array of values, you would need to use:
Give that a try and see if it works.
HTH
MB
jas <[EMAIL PROTECTED]> said:
> As of right now if you run th
As of right now if you run the php script and view source on the page you
can see that it does place the content of db table into array... ex.
Current Inventory
Type Of Car: Fordremove
but on the following page (after selecting items to delete) it just displays
the word array for each field (
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-DB] Passing contents of array on as variables...
>
> Let's see what your code looks like now and where it is returning the
> word "array". That might help determine where the problem lies now.
>
> MB
>
>
Oops... yeah its a monday.
Bjorn, I reverted back to my original code because I was getting confused...
Here is page one...
Current
Inventory";
// Start to count number of records in selected table and loop until done
$count = -1;
while ($myrow = mysql_fetch_array($result)) {
$count ++;
// Begin
Let's see what your code looks like now and where it is returning the
word "array". That might help determine where the problem lies now.
MB
jas <[EMAIL PROTECTED]> said:
> Ok to this point I have been able to query a database table, display the
> results in tables and within a form. As of y
Ok to this point I have been able to query a database table, display the
results in tables and within a form. As of yet I have been able to insert
the contents of the db query into an array for further processing. However,
when I try to pass the contents of that array on to another page to delet
15 matches
Mail list logo