Codeman0013 Posted September 21, 2006 Share Posted September 21, 2006 now i get ... Parse error: syntax error, unexpected '{', expecting ',' or ';' in /u/internet/com/dickeyjohn/test.php on line 76and <?php do { ?> <option value="<?=$row_rs_industry['industry_id'];?>"<?=(isset($_GET['industry_id']) && $_GET['industry_id'] == $row_rs_industry['industry_id']) { ?> selected<?php } ?>><?=$row_rs_industry['industry_name'];?></option> thats the line of code Link to comment Share on other sites More sharing options...
reportingsjr Posted September 21, 2006 Share Posted September 21, 2006 what are you trying to accomplish there?!? are you trying to make a dropdown with values?try this, its cleaner, thats kind of messy and really hard to understand! <?phpdo{echo "<option value='$row_rs_industry['industry_id']'";if(isset($_GET['industry_id']) && $_GET['industry_id'] == $row_rs_industry['industry_id']){echo " selected='selected'>'";}echo $row_rs_industry['industry_id'];echo "</option>";}while($something == "something")?> That should work, if not tell me specifically what you want! Link to comment Share on other sites More sharing options...
justsomeguy Posted September 21, 2006 Share Posted September 21, 2006 It's probably easier to just print the whole thing instead of opening and closing the PHP tags all over the place. Did you try the code I posted in the other thread? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now