Page 1 of 1

What is wrong ?

Posted: Sun Dec 14, 2014 3:15 am
by Dasaradh

Code: Select all

echo "<option value=' ".$stock." ' selected=' "selected" ' >".$stock."</option>";
There is some mistake in the code. I have tried many times but found nothing. Can you find whats the mistake ?

Re: What is wrong ?

Posted: Sun Dec 14, 2014 5:04 am
by requinix
Yup.

Code: Select all

." ' selected=' "selected" ' >".
Mind your quotes.