Jump to content

[SOLVED] Display once


papaface

Recommended Posts

Hello,

I have this code:

		$_getnames = mysql_query("select inspector_id from requests");

if	(mysql_num_rows($_getnames) >0)
	{

		while(list($inspector_id) = mysql_fetch_array($_getnames))

 

That correctly displays the ID's for the inspectors. However how can I make it so it only shows each ID once, rather than displaying it for every record?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/46566-solved-display-once/
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.