[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Am I able to use the "and" there?

Posted on 2007-03-27
1
Medium Priority
?
164 Views
Last Modified: 2008-03-06
Is it possible to do something like this?

while ($row = mysql_fetch_array($SQLStrings[0]) and $row = mysql_fetch_array($SQLStrings[1])) {
      $reviewID = $row['reviewID'];
      $strOverall = $row['strOverall'];
      $strCompanyname = $row['strCompanyname'];
      $strProviderservice = $row['strProviderservice'];
        $strAd_size = $row['strAd_size'];
}
0
Comment
Question by:pingeyeg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 24

Accepted Solution

by:
glcummins earned 1000 total points
ID: 18802221
No, that won't work, but you can use something like:

while ($row = mysql_fetch_array($SQLStrings[0]))
{
    $rowFromOtherArray = mysql_fetch_array($SQLStrings[1]);

    // Code
}

This will pull a row from each array. Note: for this to work, you probably want to ensure that $SQLStrings[1] has at least as many records as $SQLStrings[0].
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question