Hi
This is a further query regarding this thread I asked about earlier - thread434-1505213
Although the query answers my question by printing the result, I need this result in an edit form with a drop-down list (form select).
So I have a mySQL Db with values in it for 'activated' and 'authorised' as an integer - 0 or 1. Obviously 0 is no and 1 is yes.
So I want to edit the users details and set these flags to Yes (if they are set to no). The problem I have is that I extract the data as 0's or 1's.
When I load the users details into the edit form, I want to set the form select value to either No or Yes depending on the value from the database. I also want to list the cahracter values for the numerical ones, so in the list I want a No and yes with the values set to 0 and 1.
Possible?
Thanks.
This is a further query regarding this thread I asked about earlier - thread434-1505213
Although the query answers my question by printing the result, I need this result in an edit form with a drop-down list (form select).
So I have a mySQL Db with values in it for 'activated' and 'authorised' as an integer - 0 or 1. Obviously 0 is no and 1 is yes.
So I want to edit the users details and set these flags to Yes (if they are set to no). The problem I have is that I extract the data as 0's or 1's.
When I load the users details into the edit form, I want to set the form select value to either No or Yes depending on the value from the database. I also want to list the cahracter values for the numerical ones, so in the list I want a No and yes with the values set to 0 and 1.
Possible?
Thanks.