I forgot the break; for the switch :(
Thanks,
John Ellingsworth
http://mail.med.upenn.edu/~jellings/
-Original Message-
From: John Ellingsworth [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 2:37 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Array problem
Hi.
In the
Hi.
In the code below, I always get an error from the sql statement due to some
problem in the array result.
The goal is to add as many keywords to as many thumbnails selected from a
form.
The thumbnails have this checkbox:
And the keyword this:
Animals
etc ...
The error info is this, with
__
- Original Message -
From: "DaMouse" <[EMAIL PROTECTED]>
To: "PHP - Win" <[EMAIL PROTECTED]>
Sent: Sunday, December 01, 2002 6:17 AM
Subject: [PHP-WIN] array problem need help quick
I need help with a array problem I want one array to be
I need help with a array problem I want one array
to be sorted and another taking its same number order e.g.
$ar1[0] == "marmite"; $ar2[0] == 10;
$ar1[1] == "jam"; $ar2[1]
== 11;
$ar1[2] == "beef"; $ar2[2]
== 7;
$ar1[3] == "cabbage";
$ar2[3] == 0;
$ar1[4] == "ick"; $ar2[4]
== 5;
sort($ar
O.thank for yr help..^_^
"Mike Flynn" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> At 11:32 AM 7/29/01 -0700, Rasmus Lerdorf wrote:
> > > > > $a = array("a","b","c");
> > >
> > > for ($c=0 ; $c < count($a) ; ++$c);{
> >
> >Get rid of the ; there
At 11:32 AM 7/29/01 -0700, Rasmus Lerdorf wrote:
> > > $a = array("a","b","c");
> >
> > for ($c=0 ; $c < count($a) ; ++$c);{
>
>Get rid of the ; there ^^^
Also,
echo("$a[$c] \n");
will probably not work.
Try:
echo $a[$c]."\n";
or, using your syntax, echo($a[$c]."\n");
You may want to
oh.
thx for yr help^_^
"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Mon, 30 Jul 2001, delol@2k@php¤¤.. wrote:
>
> > > $a = array("a","b","c");
> >
> >
> > for ($c=0 ; $c < count($a) ; ++$c);{
>
> Get rid of the ; there
On Mon, 30 Jul 2001, delol@2k@php¤¤.. wrote:
> $a = array("a","b","c");
>
>
> for ($c=0 ; $c < count($a) ; ++$c);{
Get rid of the ; there ^^^
-Rasmus
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMA
\n");
}
?>
I suppose it should be display
~~
a
b
c
~~
but it doesn't work, pls help.
the emtpy page was displayed.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To