pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julio Cuz, Jr. <jcuz@rccd.cc.ca.us>
To: pgsql-php@postgresql.org
Subject: Variables
Date: Thu, 25 Apr 2002 08:57:31 -0700
Message-ID: <5.1.0.14.0.20020425085709.00aba940@mail.rccd.cc.ca.us> (raw)
In-Reply-To: <5.1.0.14.0.20020315084826.02525470@cooee.cybersydney.com.a u>
References: <200203130916.g2D9GLfd020708@artemis.cuci.nl>

HI--
    * I have the following variables: $c1 thru $c10.
    * I also have a FOR loop like this:
         for($count = 0; $count < sizeof($artist); $count++)
                 { echo "<i>$artist[$count]</i><br>"; }
         // $artist is a list of ten (10) artist's names.
    * What I'm trying to do is something like this:  Combine the variables 
with the info inside the FOR loop:
>             for($count = 0; $count < sizeof($artist); $count++)
>                     {  //Trying to assign the value of $c1, $c2, $c3, 
> etc. using the value of the variable $count.
>                        //But so far, it only processes the value of 
> $count alone, and it ignores $c
>                     //The line below should read like this:  $c1 = 
> $artist[0], next line:  $c2 = $artist[1], etc.
>                             $c . $count+1 = $artist[$count];
>                     }
>
>    Help!!!

Julio Cuz, Jr.
Riverside Community College
jcuz@rccd.cc.ca.us

view thread (3+ messages)  latest in thread

Message-ID: <5.1.0.14.0.20020425085709.00aba940@mail.rccd.cc.ca.us>
Permalink:  ../5.1.0.14.0.20020425085709.00aba940@mail.rccd.cc.ca.us/
Also on:    postgresql.org/message-id/5.1.0.14.0.20020425085709.00aba940@mail.rccd.cc.ca.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: jcuz@rccd.cc.ca.us
  Subject: Re: Variables
  In-Reply-To: <5.1.0.14.0.20020425085709.00aba940@mail.rccd.cc.ca.us>
  References: <200203130916.g2D9GLfd020708@artemis.cuci.nl> <5.1.0.14.0.20020425085709.00aba940@mail.rccd.cc.ca.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox