{"id":2441,"date":"2009-11-04T00:50:20","date_gmt":"2009-11-03T16:50:20","guid":{"rendered":"http:\/\/www.softwareforenterprise.us\/?p=2441"},"modified":"2022-07-20T17:46:10","modified_gmt":"2022-07-20T09:46:10","slug":"automatically-create-a-php-web-application-based-on-a-mysql-database-structure","status":"publish","type":"post","link":"https:\/\/www.softwareforenterprise.us\/hub\/automatically-create-a-php-web-application-based-on-a-mysql-database-structure\/","title":{"rendered":"Create a PHP web app based on MySQL database structure"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignleft size-full wp-image-2445 lazyload\" title=\"appgini-template\" data-src=\"https:\/\/www.softwareforenterprise.us\/hub\/wp-content\/uploads\/2009\/11\/appgini-template.png\" alt=\"appgini-template\" width=\"240\" height=\"191\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 240px; --smush-placeholder-aspect-ratio: 240\/191;\" \/>Whenever there is a requirement for a new system, what would your approach be when it comes to implementing the system?<\/p>\n<p>A common question that CTO and IT managers usually ask is, should we build or buy?<\/p>\n<p>If we buy, we get a working system much faster but the cost may be quite high especially when we need to purchase licenses, and hardware, and pay consulting fees.<\/p>\n<p>If we build, the process to get the system up and running usually takes longer as it requires more time to plan, code, test, and deploy. However, the system can be developed to be very detailed and unique. An organization that builds its own systems gives itself a competitive advantage over its competitors without such systems.<!--more--><\/p>\n<p><a href=\"https:\/\/bigprof.com\/appgini\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"alignleft size-full wp-image-2446 lazyload\" title=\"AppGini Logo\" data-src=\"https:\/\/www.softwareforenterprise.us\/hub\/wp-content\/uploads\/2009\/11\/AppGini-Logo.png\" alt=\"AppGini Logo\" width=\"351\" height=\"68\" data-srcset=\"https:\/\/www.softwareforenterprise.us\/hub\/wp-content\/uploads\/2009\/11\/AppGini-Logo.png 351w, https:\/\/www.softwareforenterprise.us\/hub\/wp-content\/uploads\/2009\/11\/AppGini-Logo-300x58.png 300w\" data-sizes=\"(max-width: 351px) 100vw, 351px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 351px; --smush-placeholder-aspect-ratio: 351\/68;\" \/><\/a>Today&#8217;s post will be about a tool called <a href=\"https:\/\/bigprof.com\/appgini\/\" target=\"_blank\" rel=\"noopener noreferrer\">AppGini<\/a> which helps IT folks develop PHP web <a title=\"\" class=\"aalmanual\" target=\"_blank\"  rel=\"nofollow\"   style=\"color:#1e73be;\" href=\"https:\/\/partners.webydo.com\/6wdx17ttbarj\">applications<\/a> easily by just defining a MySQL <a title=\"\" class=\"aalmanual\" target=\"_blank\"  rel=\"nofollow\"   style=\"color:#1e73be;\" href=\"https:\/\/1.envato.market\/q4O2bn\">database<\/a> structure. Once a database structure has been defined, creating a web application is as simple as clicking on the <strong>Generate PHP Code<\/strong> button.<\/p>\n<p>Sometimes when I&#8217;m doing programming and feeling the pain of coding in the middle of the night, I just wished that there was a Generate PHP Code button for me to just click and head straight to bed. <img decoding=\"async\" class=\"alignright size-full wp-image-2449 lazyload\" title=\"generate php code\" data-src=\"https:\/\/www.softwareforenterprise.us\/hub\/wp-content\/uploads\/2009\/11\/generate-php-code.png\" alt=\"generate php code\" width=\"90\" height=\"74\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 90px; --smush-placeholder-aspect-ratio: 90\/74;\" \/>However, this button only exists in AppGini as well as in my dream! \ud83d\ude42<\/p>\n<p>Before I proceed to go into detail about what AppGini can help us do, check out this simple visitor management system that I&#8217;ve created using AppGini. All done within 10 minutes. See the screenshot below.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2443 lazyload\" title=\"visitor management system\" data-src=\"https:\/\/www.softwareforenterprise.us\/hub\/wp-content\/uploads\/2009\/11\/visitor-management-system.png\" alt=\"visitor management system\" width=\"500\" height=\"285\" data-srcset=\"https:\/\/www.softwareforenterprise.us\/hub\/wp-content\/uploads\/2009\/11\/visitor-management-system.png 500w, https:\/\/www.softwareforenterprise.us\/hub\/wp-content\/uploads\/2009\/11\/visitor-management-system-300x171.png 300w\" data-sizes=\"(max-width: 500px) 100vw, 500px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 500px; --smush-placeholder-aspect-ratio: 500\/285;\" \/><!--adsensestart--><\/p>\n<p>The app above is a simple visitor management system that allows visitors to enter their name, social security number, and the date &amp; time they check in to visit. Looking at the screenshot, I think I should have also added in the checkout time so that the records look more complete.<\/p>\n<p>In case you&#8217;re wondering what I did in order to come out with the system above, these are the steps:<\/p>\n<ol>\n<li>Launched AppGini<\/li>\n<li>Added a new table and added the fields (for e.g, Name, SSN, etc)<\/li>\n<li>Clicked on Generate PHP codes<\/li>\n<li>Copied the generated PHP codes into my XAMPP&#8217;s htdocs folder<\/li>\n<li>Ran the system from a browser<\/li>\n<li>Entered MySQL admin details to create the database<\/li>\n<li>Renamed administrator <a title=\"\" class=\"aalmanual\" target=\"_blank\"  rel=\"nofollow\"   style=\"color:#1e73be;\" href=\"https:\/\/keepersecurity.partnerlinks.io\/qns375ot4fmt-1yt2lb\">password<\/a><\/li>\n<li>Created a group<\/li>\n<\/ol>\n<p>Well, that&#8217;s about all the steps I ran to create a simple PHP web application with AppGini.<\/p>\n<p>Some of AppGini&#8217;s other features include:<\/p>\n<ul>\n<li>Automatic PHP code generation<\/li>\n<li>Easily search the entered records<\/li>\n<li>Easily export data to .csv format<\/li>\n<li>Easily sort data by column ascending or descending<\/li>\n<li>Admin interface to manage users, permissions, and data<\/li>\n<li>Create multi-users with different access rights, for eg. to add, edit, and delete can be 3 different users<\/li>\n<\/ul>\n<div class=\"lyte-wrapper\" title=\"Creating a web database application in 5 minutes using AppGini\" style=\"width:640px;max-width:100%;margin:5px auto;\"><div class=\"lyMe qsa_\\&amp;start\\=2\" id=\"WYL_9dtXEt2wBIg\" itemprop=\"video\" itemscope itemtype=\"https:\/\/schema.org\/VideoObject\"><div><meta itemprop=\"thumbnailUrl\" content=\"https:\/\/www.softwareforenterprise.us\/hub\/wp-content\/plugins\/wp-youtube-lyte\/lyteCache.php?origThumbUrl=https%3A%2F%2Fi.ytimg.com%2Fvi%2F9dtXEt2wBIg%2Fhqdefault.jpg\" \/><meta itemprop=\"embedURL\" content=\"https:\/\/www.youtube.com\/embed\/9dtXEt2wBIg\" \/><meta itemprop=\"duration\" content=\"PT5M26S\" \/><meta itemprop=\"uploadDate\" content=\"2015-01-19T18:58:59Z\" \/><\/div><meta itemprop=\"accessibilityFeature\" content=\"captions\" \/><div id=\"lyte_9dtXEt2wBIg\" data-src=\"https:\/\/www.softwareforenterprise.us\/hub\/wp-content\/plugins\/wp-youtube-lyte\/lyteCache.php?origThumbUrl=https%3A%2F%2Fi.ytimg.com%2Fvi%2F9dtXEt2wBIg%2Fhqdefault.jpg\" class=\"pL\"><div class=\"tC\"><div class=\"tT\" itemprop=\"name\">Creating a web database application in 5 minutes using AppGini<\/div><\/div><div class=\"play\"><\/div><div class=\"ctrl\"><div class=\"Lctrl\"><\/div><div class=\"Rctrl\"><\/div><\/div><\/div><noscript><a href=\"https:\/\/youtu.be\/9dtXEt2wBIg\" rel=\"nofollow\"><img decoding=\"async\" src=\"https:\/\/www.softwareforenterprise.us\/hub\/wp-content\/plugins\/wp-youtube-lyte\/lyteCache.php?origThumbUrl=https%3A%2F%2Fi.ytimg.com%2Fvi%2F9dtXEt2wBIg%2F0.jpg\" alt=\"Creating a web database application in 5 minutes using AppGini\" width=\"640\" height=\"340\" \/><br \/>Watch this video on YouTube<\/a><\/noscript><meta itemprop=\"description\" content=\"This screen cast will guide you through using AppGini ( https:\/\/bigprof.com\/appgini ) to create a database web-application from scratch. In a few minutes, we&#039;ll create a simple product catalog, set it up and see it in action. 00:07 If you are looking for a way to make a user-friendly, fast and feature-rich web application in a very short time, that&#039;s when AppGini comes handy. This tutorial shows you how to create a web application in 5 minutes using AppGini. 00:21 First we&#039;ll start a new project. Let&#039;s give it a name: in our example we&#039;ll name it &quot;product catalog&quot;. 00:31 Then we&#039;ll add two tables one for &quot;categories&quot; and another one for &quot;items&quot;. 00:37 You can assign an icon for each table by clicking on the box at the left of the table name. 00:48 Next, we&#039;ll add fields to each table. Each table MUST contain a primary key field. If you name a field &quot;ID&quot;, it will automatically become a primary key. You can add as many fields and tables as you need. 01:16 Now, let us try out some of AppGini&#039;s features. 01:18 If we set a field as a look-up, it would be displayed to users as a drop-down, listing data from another table. This makes your web application more organized. We&#039;ll set the &quot;category&quot; field as a look-up field simply by clicking on the &quot;look-up field&quot; tab, selecting &quot;category&quot; as the &quot;parent table&quot; then &quot;category name&quot; as the &quot;parent caption field&quot;. 01:40 In addition, if you want to list items under each category, you&#039;ll need to configure the &quot;categories&quot; table by opening the &quot;parent\/children settings&quot;, select the &quot;items&quot; table, check &quot;enabled&quot;, &quot;show icon&quot; and optionally rename the &quot;tab title&quot; to a more descriptive one. 01:57 All you need to do now is to generate your web application by clicking the magic stick icon. Choose your application path and AppGini will do the job for you. 02:14 These are the files generated by AppGini. 02:20 Let us visit our web application and see this in action. 02:37 This is the setup data page. Once we are done filling it, we start using our application. 02:52 As you can see, both tables appear on the first page. Let&#039;s go to the &quot;Categories&quot; table and enter some data. Here you can see the table fields. 02:59 To start adding a new record simply click &quot;Add new&quot;. You will automatically be directed to the Data entry page, also known as Detail view form. 03:11 We&#039;ll enter Dresses and T-shirts as an example. Simply press &quot;back&quot; to see how the table looks like. 03:22 Once we are done, we jump to &quot;items&quot; table and start adding our data for this table as well. 03:43 Do you see how the &quot;category&quot; field is displayed? It&#039;s a drop down menu, because we set it up as a look-up field in AppGini. The drop down lists the categories that we entered a moment ago in the &quot;categories&quot; table. 03:59 AppGini offers special features for fields with immutable data like &quot;size&quot; and &quot;target groups&quot;. 04:07 This is how the &quot;items&quot; table looks like after adding our data. 04:12 Now let us go back to AppGini to see how to make use of its features. 04:16 To create a drop-down list, click on the field name, then on &quot;options list&quot;, and type all values you need, separating options with double semicolon. You can choose among three options for how to display your options list. In our case we will choose the &quot;drop-down list&quot;. 04:36 We&#039;ll perform the same steps for the &quot;target group&quot; field, but this time we&#039;ll choose &quot;radio buttons&quot; instead of &quot;drop-down list&quot;. 04:48 Once we generate, we get back to our web application, refresh the page and start adding a new record. 05:04 So this way our &quot;size&quot; field became a drop-down field and our &quot;target group&quot; field became a radio buttons field. 05:24 Finally, this is how our table looks like. To get to know more about AppGini, please visit our homepage for more video tours.\"><\/div><\/div><div class=\"lL\" style=\"max-width:100%;width:640px;margin:5px auto;\"><\/div><\/p>\n<p>I personally think that AppGini is a great tool to get a simple system up and running really quickly. Since the codes are automatically generated for you in less than a minute, you can easily add in more codes of your own to enhance the system&#8217;s capabilities and make it look nicer. Oh ya, there are also additional <a href=\"https:\/\/bigprof.com\/appgini\/download-appgini-themes\" target=\"_blank\" rel=\"noopener noreferrer\">AppGini Themes<\/a> that you can download and use if you&#8217;re not happy with the default colors.<\/p>\n<p>To find out more about AppGini, I&#8217;d suggest you look through <a href=\"https:\/\/bigprof.com\/appgini\" target=\"_blank\" rel=\"noopener noreferrer\">AppGini&#8217;s Website<\/a> and <a href=\"https:\/\/bigprof.com\/appgini\/video-tour\" target=\"_blank\" rel=\"noopener noreferrer\">Video Tours<\/a>. Enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Whenever there is a requirement for a new system, what would your approach be when it comes to implementing the system? A common question that CTO and IT managers usually ask is, should we build or buy? If we buy, we get a working system much faster but the cost may be quite high especially [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2445,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Create a PHP web app based on MySQL database structure - Software for Enterprise","description":"Whenever there is a requirement for a new system, what would your approach be when it comes to implementing the system? A common question that CTO and IT manage"},"footnotes":""},"categories":[11],"tags":[],"class_list":["post-2441","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-databases"],"_links":{"self":[{"href":"https:\/\/www.softwareforenterprise.us\/hub\/wp-json\/wp\/v2\/posts\/2441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.softwareforenterprise.us\/hub\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.softwareforenterprise.us\/hub\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.softwareforenterprise.us\/hub\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softwareforenterprise.us\/hub\/wp-json\/wp\/v2\/comments?post=2441"}],"version-history":[{"count":0,"href":"https:\/\/www.softwareforenterprise.us\/hub\/wp-json\/wp\/v2\/posts\/2441\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.softwareforenterprise.us\/hub\/wp-json\/wp\/v2\/media\/2445"}],"wp:attachment":[{"href":"https:\/\/www.softwareforenterprise.us\/hub\/wp-json\/wp\/v2\/media?parent=2441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.softwareforenterprise.us\/hub\/wp-json\/wp\/v2\/categories?post=2441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.softwareforenterprise.us\/hub\/wp-json\/wp\/v2\/tags?post=2441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}