Jump to content

Recommended Posts

I get Parse error: syntax error, unexpected $end in C:\wamp\www\warren\billing\editdos.php on line 210

Did I not include a bracket or somehting?  I can't figure out why this doesn't work.

 

<td>
<?php  $query2 = "SELECT * FROM proc_list";
	$results2 = mysql_query ($query2) or die (mysql_error());

	?>
        <select name = "procedure" >
	<option selected="">Select Procedure		

	<?php		
	while ($row2 = mysql_fetch_assoc ($results2)) {   
   
        ?><option value = "<?php echo $row2['procedures'];?>"><?php echo $row2['procedures'];?>
      	}
      
      </select>
</td></tr>

Link to comment
https://forums.phpfreaks.com/topic/137384-solved-unexpected-end/
Share on other sites

ou have brace just after this line...

Oops your right thanks!

 

Shouldn't you close your option tags?  </option>

 

I never have and it seems to work.  Otherwise I have to write </option> over and over

 

Its good programming habits. You always close an open tag. Its like leaving your front door open, once you are in then you close the door. So close your tags!

ou have brace just after this line...

Oops your right thanks!

 

Shouldn't you close your option tags? 

 

I never have and it seems to work.  Otherwise I have to write over and over

 

It may not be the cause of the error but, like Lamez said, it's good programming practice.  I don't think it will validate either.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.