So this might be answered and I'd be happy if anyone could link it to me but I just didnt know how to search for this problem!
var getData = "SELECT * FROM Test WHERE exercise = " + exercise + " AND exerVariName = '" + exerVariName + "' AND date >= '" + fromDate + "' AND date <= '" + toDate + "'";
this is my line that gets the data from the database, I have a dropdown textbox thing that gives the exerVariName so whatever I choose in the dropdown gets inserted in this line ofc.
<select name="exerVariName" >
<option value="*">All</option>
@foreach (var get in db.Query(getVariName)) {
<option value="@get.exerVariName">@get.exerVariName</option>
}
</select>
So as you can see, I get the options to the dropdown from a database and put them out with the foreach, and I thought if I add a seperate one and put * as the value which I thought ment 'all' in the sql world. It didnt work, so I want to know what to put as the value in the first option the make the database select all in that column!