Jump to content

displaying entries not in column


vikela

Recommended Posts

hi

suppose i have a table with a column that can have values of between 1 and 10 only and i would like to display on a user form values that are not yet in the column.i would like the values to be in a select menu.so far i have something like this..

<?php 


foreach ($find as $rows){

		if(!in_array($rows['rank'],$arr)){
                          
		?>
          <option value="<?php echo $value;
	  }
	  
	  ?>" <?php if($value!=$rows['rank']) {echo "selected=\"selected\"";} ?>><?php echo $value; ?></option><?php} } ?>

 

 

Link to comment
https://forums.phpfreaks.com/topic/175344-displaying-entries-not-in-column/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.