I am trying to include a value from a database table within the value element of an input field.
This is what I have, but it is not working:
?><input type="text" size="10" value="<?= date("Y-m-d",
strtotime($rowupd['upcoming_event_featured_date'])) ?>" name="upcoming_event_featured_date"
id="keys"/><?php
I have done this before, but I usually print it out like this:
print '<input type="text" size="10" value="'.date("Y-m-d",
strtotime($rowupd['upcoming_event_featured_date'])).'" name="upcoming_event_featured_date"
id="keys"/>';
What is the appropriate way of doing this without using print ''?