I've written a sql select statement that return data just fine. I've got to format the data for my JS array though. The party I'm having issues with is place the , in the correct spot. I need to place it between the } and the next { . Current how my code is it add's an extra , at the end which causes issues.
<%
sqlEmployees "SELECT * FROM people ORDER BY Last_Name"
Set rsEmployees = conn.Execute(sqlEmployees)
If (Not rsEmployees.EOF) Then
response.write "employees = ["
While (Not rsEmployees.EOF)
response.write "{label: '" & rsEmployees("Name_Last") & ", " & rsEmployees("Name_First") & "', value: " & rsEmployees("ID") & "}, "
rsEmployees.MoveNext
Wend
response.write "];"
End If
Set rsEmployees = Nothing
%>