I would like to do the following but I´m not quite sure how:
- I would have a db-table containing two columns: name and content
- Select everything or just some rows from that database and
- Create a variable for each row named after what´s in the name field on that row containing the string from the content field.
What I mean is if I have a db-table that looks like this:
Name Content
Variable1 text
Variable2 more text
I would end up with $Variable1 = "text" and $Variable2 = "more text".
Should be fairly simple but my brain just can´t seem to come up with a easy solution so help would be appreciated!