I am pulling out a date value in the format 2012-12-28 from a database and now I need to create a html li element using the date value.
The li elements are in the following form which have an id and calls two javascript functions.
<li id="date2012-12-28" onClick="showUser('2012-12-28'); getID(this.id);">2012-12-28</li>
In this example the date "2012-12-28" is a variable value from the database.
How can I construct a php query to generate these links dynamically?
For example
echo '<li id="' . $value . + "onClick="showUser('" . $value . "');" ....
Thanks
foreachorfororwhile