Skip to main content
improved grammar
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

I have a formform where I would likeneed to define checkboxesadd a checkboxes field. The purpose of this form is to display some values from the database. I would like to display "id"id from my database table as checkboxes' valuescheckbox' value (when "active" = 1) and "url" as checboxes' labels from databaseurl as checkbox' labels.

MyThe database table (notifications) looks like this:table's structure is the following.

id | uid | hash          | url          | active

1  | 1   | myhashstring1 | example_url  | 1
2  | 1   | myhashstring3 | example_url4 | 1
3  | 1   | myhashstring2 | example_url2 | 0

How can I achieve this?

I have a form where I would like to define checkboxes. The purpose of this form to display some values from database. I would like to display "id" as checkboxes' values (when "active" = 1) and "url" as checboxes' labels from database.

My database table (notifications) looks like this:

id | uid | hash          | url          | active

1  | 1   | myhashstring1 | example_url  | 1
2  | 1   | myhashstring3 | example_url4 | 1
3  | 1   | myhashstring2 | example_url2 | 0

How can I achieve this?

I have a form where I need to add a checkboxes field. The purpose of this form is to display some values from the database. I would like to display id from my database table as checkbox' value (when "active" = 1) and url as checkbox' labels.

The database table's structure is the following.

id | uid | hash          | url          | active

1  | 1   | myhashstring1 | example_url  | 1
2  | 1   | myhashstring3 | example_url4 | 1
3  | 1   | myhashstring2 | example_url2 | 0

How can I achieve this?

added 154 characters in body
Source Link
asrob
  • 491
  • 1
  • 6
  • 18

I have a form where I would like to define checkboxes. But I would likeThe purpose of this form to get their labels anddisplay some values from database. I would like to setdisplay "id" as checkboxes' values "id" as values where(when "active" = 1) and "url" as checboxes' labels from database.

My database table (notifications) looks like this:

id | uid | hash | url | active

id | uid | hash          | url          | active

1  | 1   | myhashstring1 | example_url  | 1
2  | 1   | myhashstring3 | example_url4 | 1
3  | 1   | myhashstring2 | example_url2 | 0

How can I achieve this?

I have a form where I would like to define checkboxes. But I would like to get their labels and values from database. I would like to set "id" as values where "active" = 1 and "url" as labels from database.

My database table (notifications) looks like this:

id | uid | hash | url | active

How can I achieve this?

I have a form where I would like to define checkboxes. The purpose of this form to display some values from database. I would like to display "id" as checkboxes' values (when "active" = 1) and "url" as checboxes' labels from database.

My database table (notifications) looks like this:

id | uid | hash          | url          | active

1  | 1   | myhashstring1 | example_url  | 1
2  | 1   | myhashstring3 | example_url4 | 1
3  | 1   | myhashstring2 | example_url2 | 0

How can I achieve this?

I have a formform where I would like to define checkboxescheckboxes. But I would like to get their labels and values from database. I would like to set "id" as values"id" as values where "active" = 1"active" = 1 and "url" as labels"url" as labels from database.

My database table (notifications) looks like this:

id | uid | hash | url | active

How can I achieve this?

I have a form where I would like to define checkboxes. But I would like to get their labels and values from database. I would like to set "id" as values where "active" = 1 and "url" as labels from database.

My database table (notifications) looks like this:

id | uid | hash | url | active

How can I achieve this?

I have a form where I would like to define checkboxes. But I would like to get their labels and values from database. I would like to set "id" as values where "active" = 1 and "url" as labels from database.

My database table (notifications) looks like this:

id | uid | hash | url | active

How can I achieve this?

Source Link
asrob
  • 491
  • 1
  • 6
  • 18
Loading