Jump to content

Someone with some Talent please help.


todayme

Recommended Posts

See below between //------------ I have written an explination, I have tried and tried to do this can someone please help.

 

 


?>
<select name="Location">

<?php

  $query=mysql_query("SELECT $dbState FROM $locationtype");
  while ($fetch=mysql_fetch_assoc($query)) {

//-----------------------------------------------------------------

Select from table where Industry = $dbIndustry and Location1 = $dbState

If one or more records exists


put the value of the first query into the drop down box if not dont do it






//-----------------------------------------------------------------





   echo '<option value="'.$fetch[$dbState].'">'.$fetch[$dbState].'</option>';
  }
mysql_close($db);?></select>




Link to comment
https://forums.phpfreaks.com/topic/42642-someone-with-some-talent-please-help/
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.