How to create a custom reuseable HTML template populated with data from database? - html

I have a database containing many records - let's say its a people database and the columns contain Name, Surname, Age, FreeText.
I want that this data to be displayed in a list on my website. Each item in the list should contain the database' row data.
In detail, each list item should be a custom HTML div consisting e.g. of 2 columns, where in the first column the Surname and the Name should be displayed in the first row, the age in the second. In the second column there should be the free text.
There should also be a onClick listener on this item.
I am a Wordpress Beginner, I have no idea how to achieve this. I think the general approach has to be: Get records from DB, create the items dynamically, put the into the list, and display the list on the page.
I purchased the Avada theme for the design, but this kind of functionality does not seem to be included.
Any hints where to start? Do I have to create dynamic php files, and if yes, how? With javascript? Or are there Plugins available which I can use?

i find this plugin for you try this link:
https://wordpress.org/plugins/participants-database/
This plugin offers all the functionality needed to build and maintain a database of people or anything you want. The database is fully configurable, allowing you to define all the fields of information you want to store for each record. The records can be entered individually in the WordPress admin section, imported with a CSV file, or let the individuals themselves create their own record. Display lists of records can be sorted and filtered by any field, and the result exported as a CSV file.

Related

Saving a watchlist for each user in laravel

In the laravel project I'm currently working on I want to store watchlists of contents for each user.
I'm wondering now what is the best way to do it, I came up with adding a column to the users table named watchlist and then store a json string in there containing all contents on the watchlist of that user.
But I feel like this is the most simple and basic way to do it. Is there any better/ more elegant way to do it? FYI: I use mysql.
if the list items comes from another columns, i prefer to put the user watchlist in table instead of putting in on a json, because of cascading or any future update.

Bulk update custom Sharepoint lists

I've searched multiple sources, watched coutless YouTube videos and I'm still no further forward.
I have multiple Access tables linked to Sharepoint lists. Each table / list has a unique identifier (which is a concatenation of 3 key fields (it's a long story!)). Anyways, with these unique fields I've created a custom list in Sharepoint to get a collective view of over 30 columns from various lists which I'd ideally like to perform a bulk update on.
To cut a long story short, I have over 1000 updates that need to be transferred from an Excel spreadsheet to the new custom (collective) SharePoint view. The fields are all mapped and are exactly the same layout within Excel, as to the new custom list.
The really frustrating thing with Sharepoint custom lists though is that you need to individually select each custom identifier in order to populate the rest of the row where lists are linked. I've tried to get around this however, just being met with greyed out fields that I'm unable to edit. (Unsure if this is because it's linked to Access, but tried everything to solve)
I have the unique identifier in Excel. I have all the columns mapped. Surely there must be a simple way to just copy the full Excell file and paste it into the custom Sharepoint view?!
Any help / alternative suggestions / drinks tokens appreciated.
Thanks in advance!

Form - Create new record in *different* table based on current form data

I'm building a risk and issues tracker and have become stuck after some good initial progress. I'll explain my setup now.
Tables
A table containing all open projects
A table containing all open
risks and issues
Relationships
A one-to-many relationship between with project ID (Primary Key in the project table) to the risks and issues table
Queries
A query that will filter results from the projects table that have been selected in a combo box
Forms
One form containing a combobox that allows the user to select a project. There is also a text box, which will be populated based on the selected project. The text box is populated using DLookUp on the above query, and I have chosen a field to be populated from that. This all works fine.
I am able to select a project and see a little information about it using the above set up. The next step for me is to be able to add a risk or an issue.
What I would like to happen is to have a create Risk / Issue button, which will pull across the Project ID (primary key) from the selected project, and add a new record in the **risks and issues* table. I will also need to add in additional information about the risk, dates, owner etc.
Also, by having the project primary key tied to each risk, I should be able to pull in any additional info about the project that I require.
I can write more if required - I'm not really sure which information is needed. Also, the form 'sits on' my projects table which could well have been the wrong way of doing things, however I still don't know how to bring in the data from two different tables.
I appreciate any effort and patience put towards this.
From my understanding of the question it sounds like your trying to update your risks and issues table with a single form that is bound to your projects table. If you're adding a record to risk issue table with a bound form it needs to be bound to that table.
My best answer would be to start fresh with a new form created by the wizard.
Make sure you have all the fields you want in your form in the risks and issues table.
Create a form based on this table using the wizard.
Change the Project ID control to a combobox by right clicking and selecting change to, combobox.
Set the row source to take project id and project from the project table and then make sure project id is the bound field and project is the displayed field(by adjusting column widths and bound column properties).
After doing this you should have a form that updates your risk and issues table while selecting the project from your project table. If this is not what you were asking or you wanted to do it a different way let me know I'll see if I can help.

Access 2007 Report: Code or no Code?

I've been researching around a lot and I just can't find something I think should be very easy to someone with very little experience with Access 2007.
I am trying to create a report. The db has two tables. One with account, name and address. The other has account and product Id. The tables are joined on account. One customer/acct can have several product Ids.
I need to create a mailing that will have rich text in the body and list per account/customer the products they have.
I keep running into having the rich text(body of letter) showing each time the product Id is listed. Do I need to create something in code first? Like an array with the product Id so I can have it as one variable per account/customer? If so, where should I create this? In code, macro or expression builder?
Getting kind of frustrated I guess. I'm tempted to write something in C# as I have enough knowledge I think to make this happen, but I prefer to keep it all in Access. I might also be asked to keep it in access and c# is not what is used currently where this project is being built.
Rogue:
You should use a page header on your report containing the formatted customer/account info, probably: "Dear Account:... " You're treating each id as a separate form letter. What you want is each customer to get the letter via treating the customer as a page header and group footer, while the id's go into the details.
Then, the one or more products would be in the detail section.
The closing of the letter would be in the group (customer info) footer: "We look forward blah., blah sincerely.....
Then, set the property of the group footer to "force new page after section", meaning when you get to a new customer, eject to a blank page and start printing another letter.
Hope this helps.

Assigning picture stored on file system to item selected from database

I am building php my sql application and I need to associate picture to various items that are selected from database.
For example I want to have news on my web site, and I retrieve news from database, news properties can be Title, Content and Time, but I also need picture that is going to appear together with that news on a web site.
How to dynamically associate picture form file system to a selected row from database..
Thanks a lot.
Add a column to the database called 'image' or something. That is, if a news items is stored in a row, it will have a column called 'images' in it. So you can store the path (location) to the image associated with that news item it's column.
This way you can display the associated image when a news item is displayed. Also you can store more than 1 image information in the image field (as csv or serialized array or something.)