What is wrong ?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Dasaradh
Forum Newbie
Posts: 5
Joined: Sun Dec 07, 2014 5:19 am

What is wrong ?

Post 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 ?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: What is wrong ?

Post by requinix »

Yup.

Code: Select all

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