Dynamic php website using CODEIGNITER - mysql

My problem is that I have made a PHP page .
It has a button of "add company" that according to my employer should create a table (in database) of a the company with the desired name and also another PHP page should be automatically made that displays the table of that company from the database.
ALL this should be done on click of the add company button.

Have search your similiar question in here?? or have you search that on google??
Maybe this link would help,
Bulit Data Grid with Codeigniter
If you new to php and codeigniter you have to search a lot case here or googling, and don't forget to describe the issue, error notice, or whatever you think the code is wrong you must describe it detail.
Hope this help :-)

Related

Not able to get value from custom table in PowerApps portal

I had created a custom table(entity) in dataverse of power app portal and added some dummy data. Table name is "TestTable" and created a column "TestColumn". I am trying to get data from this in powerapps portal using liquid query.
{{entities.cr3c9_testtable['ef5398fe-c68f-eb11-b1ac-000d3af25ac1'].cr3c9_testcolumn}}
I am able to get value in portal studio as shown below.
However, when I browse this site, it's not showing.
I tried to clear cache multiple times but having same result.
Please let me know if anyone has idea on this.
Thanks in advance.
Check if table/column name is correct. Since the column is named Test Column it should be something like cr3c9_TestColumn.
Also check if you have entity permissions for cr3c9_testtable with read access and assign appropriate web roles to that permission.

Is there a way that Users can have options to disable comments on their Blog Post?

I am going through a Django tutorial and I am making a personal blog app , like users can create blogs and comment on it.
Question
I have built the comment system and Now i think, what if a user don't want to let other users make comments on his/her blog. I mean , Is there a function of code in django ? , that users can decide they want comments on blog post or NOT.
I have searched it but i found nothing.
So if you know this function then Please tell me. I will really appreciate your Help
There is not exactly any built in code for this. But you can make one.
Option 1. You can define one booleanField for eg. is_comments_disabled. If user ticks that option in the profile then you can easily make other functionality.
Option 2: Make one model and give one ArrayField. Whenever a user selects to comments disabled add that user inside the arrayfield. Now You can easily check for all the users if the comments is disabled for that post by the user or not.
Hope it gives you some way around to solve your problem.
Thanks.

Multiple Shiny apps using the ui to populate the second app

I currently have a app that manages projects. The user sees a list of projects and can select one. They can should (it would be nice) be able to click a run button and have another app open. The parameters stored in the project they selected are populated into the second application. The issue I am having is firing the second application. runApp generates the following.
ui code line:
actionButton("RunProj", "Run"),
Warning in run(timeoutMs) :
Unhandled error in observer: Key / already in use
observeEvent(input$RunProj)
I would like to trigger the second app and pass in the location of the project directory I have looked at parseQueryString and still trying to figure out a way to include that. Maybe via a redirect?
Any suggests would be much appreciated.
Regards,
Rich
I'm not 100% sure if I understand your intention correctly but here is a few things I think you may want to think about.
In one project, if you want to run a few kinds of analyses, you may want to try navbarPage
If there are many different types of analyses, you may want to try shinydashboard
If you know the link to each app and you really want to add those "run" buttons, you can add a button manually in ui.R. I think you can write some codes in server.r to generate the link based on your database.
tags$a(href="the link to your apps", class= "btn btn-default", "Run App")

Populating a HTML form with saved values for testing

Does anyone know of a browser plugin or application that will save form values then populate the same form when required?
Let me explain what I mean. I'm currently working on the registration page of a web application. As you can imagine it's quite long and I have to keep filling it out. I can fill it out reasonably quickly using values already entered by tabbing through the fields and hitting the down arrow. But, it's not fast enough! Ideally I'd like to enter the form values, then somehow save all the values under a name. E.g. "Valid registration". When I come back to the page I'd like to select my saved "Valid registration" form values and have the whole form populated automatically.
I've tried things like Web Developer but they are no good, they don't populate a form with valid data.
EDIT
I've also looked at autofill forms which is better, but still requires a lot of set up for a long form containing non standard fields.
hi this is Rahul Mandaliya.
some time ago i had faced that problem , and i got the answer , i used RoboFill software for store some data like user name , password and other .
i think you have to download this software.
i have put link for Download is : http://www.roboform.com/dist/RoboForm-Setup.exe
if did not get this software from above link , you have to manually go to www.roboform.com and Download this software.
A colleague pointed out that you can use Selenium IDE for this purpose. It's not really what it's intended for but it works like a charm.
Simply record yourself entering some details on the form, save it as something meaningful (e.g. "RegistrationValid" or "RegistrationInvalidPostcode") then you can run it whenever you like to auto populate the form. The only negative point is that the plugin is Firefox only.
You can download the plugin here: http://seleniumhq.org/download/

Plone and Mysql Searching

I have Mysql and Zope talking to each other nicely.
I can insert values in, and even view one record from the databse and have it show up in the form fields(not that cool really).
I have just been following tutorials, but now I need to search the Database and display the results.
I have been fiddling with this for a while but I haven't gotten far.
I know that using a Zope Page template we can call the Zsql method and show the results with TAL, but I need to some how using a script and a redirect form the search form pass the search data.
Can anyone help we get started?
Can anyone show me a way to do it with formgen and a custom script adapter?
Go into your ZMI, and add a "Z Search Interface" object in the same folder as your ZSQL method. Your ZSQL methods should show as "searchable objects". Select the ZSQL method you want, fill in the rest of the fields, and it will generate form and display page templates. Then modify the templates to taste.