Advertisement

06.14.2006 at 03:26AM PDT, ID: 21885809
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.8

MAKE check boxes from two arrays

Asked by portal123 in PHP and Databases

Tags: , , ,

Hello, guys  From the two queries, I made two arrays like
first array(1=>'a',2=>'b',3=>'c',4=>'d',5=>'e');
second array(2,3,5);

compare two arrays, and a number in the second array matches a number in first array
I would like to make a ckecked ckeckbox. If DOES NOT MATCH, i'd like to make a uncheck box.


require_once('../log/dbini.php');
$conn=mysql_connect($DBSERVER,$DBUSER,$DBPWD);
$select_db=mysql_select_db($DBNAME,$conn);

//GET query for All types of industries
$sql_type = "SELECT * FROM type ORDER BY TYPE_ID ASC";
$rst_type = mysql_query($sql_type);

//the first array
while($row_type = mysql_fetch_array($rst_type)){
$type_con[$row_type['TYPE_ID']] = $row_type['TYPE_NAME'];                              
}

//Get query for the industry's background where a member works
$sql_ind1="SELECT MID,INDUSTRY1 FROM tblmembers WHERE USER1 = '".$_SESSION['USER1']."'";
$rst_ind1=mysql_query($sql_ind1);
$row_ind1=mysql_fetch_assoc($rst_ind1);

//the second array
industry1=explode(':',$row_ind1['INDUSTRY1']);

Start Free Trial
[+][-]06.14.2006 at 03:49AM PDT, ID: 16901261

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: PHP and Databases
Tags: two, boxes, check, ckeckbox
Sign Up Now!
Solution Provided By: minichicken
Participating Experts: 1
Solution Grade: A
 
 
[+][-]06.14.2006 at 04:46AM PDT, ID: 16901543

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32