Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
So, I need to construct a front-facing query builder for a database, but I'm having trouble finding existing code for what I can't imagine is a rare requirement.
Basically, I have non-SQL fluent people needing to build queries on the fly and view the results.
I found this: http://plugins.jquery.com/project/SQL_QUERY_BUILDER (Demo: http://ksistem.com/jquery/sqlbuilderdemo.htm)
But it requires that the database schema be hardcoded, rather than be dynamically generated.
Is there a better solution that dyamically pulls the database schema into a jQuery-like UI for building and executing SELECT queries against a MySQL database?
Active Query Builder ASP.NET Edition's MS Access-like user interface is based on jQuery. It's a commercial component for ASP.NET 2.0 and higher. It can build SELECT statements for MySQL server.
Product page: http://www.activequerybuilder.com/product_asp.html
Demo: http://aspquerybuilder.net
Dynamically creating the database schema might be a problem, because of the relations between tables. You could let the users carry the burden of selecting the relations but if i look at the "non-SQL fluent people" around me.. i'd probably not do that..
Other than that, if you want to create/check the structure on the fly, you practically have to create/check it every time the script is called. Generating a maybe huge, not necessary, overhead. I`d probably rather have a script/db-admin generate/update the structure every time someone twiddles with the database.
I doubt that you'll find something that does exactly what your looking for.
Maybe pulling the structure out of a YAML file that's kept up to date by the db-admin might be better a better solution.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am looking for suggestions, references, articles that can help me understand as how to create a website builder. My users will choose a template and then edit in the editor similar to WIX.com I am interested to offer them a platform with similar features.
If there is any article or resource available that can give me an idea as what are the pros and cons of the application.
Thanks again for your help.
This question doesn't exactly belong here but
I've built a website builder and here's the gist;
It's going to take a long time
You're describing an application that's going to take a long time to make.
A website builder is not a small application it's going to have a lot of features in order to stand out and compete with the website builders that are already in place.
You're going to have to either have a team or be good at coding yourself
This application will need to follow an architecture like MVC to be able to properly perform maintenance on your application and to keep extending it's functionallity.
You're either going to need to be good at PHP, SQL, JS and JQuery and have a lot of time on your hands or have a team to get this done with the right skill sets.
No place to walk you through
The complexity of this application would also be very high and there is no document or video that will walk you through building the entire application simply because of it's complexity.
You're going to have to come up with how to build this application yourself.
If you're going to want to be doing this make sure you're prepared and have the resources to do so, this is not just a simple little project.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I use PHP/mySQL/CodeIgniter pretty heavily, writing sql statements to handle/manipulate data. I feel doing all that is primitive, and I've heard good things about MongoDB, schema-less database.
In MySQL, schemas helps me figure out the structure of the model. Usually, I draw out a class diagram with basic things like: id, title, description, date
What blows my mind is, MongoDB seems insanely simple, it's hard to grasp where to begin. From what I hear/read, it doesn't have a schema. How do I know what type will it return?
How do I build my models, how do I add relations between different "tables"?
What is the standard way to add relations and map out data? I've tried playing with it, but wasn't sure what I was doing was the correct way.
I've tried reading manuals and such, but couldn't find a good article helping me transition from mySQL to MongoDB.
Is there anyway I could see comparisons of Models with mySQL and MongoDB? Simple things like CRUD.
How do I start, where do I begin?
You could start here.
How do I build my models, how do I add relations between different "tables"?
Answer:
A non-relational approach is the best path to database solutions which scale horizontally to > many machines.
Answer:
MongoDB stores data in JSON documents (which we serialize to BSON). JSON provides us a rich data model that seamlessly maps to native programming language types, and since its schema-less, makes it much easier to evolve your data model than with a system with enforced schemas such as a RDBMS.
Check also What is NoSQL, how does it work, and what benefits does it provide?, I need an advice about NoSQL/MongoDb and data/models structure and Converting simple MySQL database to a NoSQL solution
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Nukewarz
What would you think needs to be added to improve this site (design wise).
There has been a lot of work put into it and now im really wanting it to be semi perfect.
Any recommendations for a nice simple php forum seeing as i already have a users database.
Are you looking for ready made php forum? I may suggest MyBB which is really simple to manage and edit and it's quite extensible. Or you could try phpBB, which is tougher in personalization but very solid and powerful. If I dint' get the 'question' wrong..
I think you may have forgotten to post the link?
Regarding the forums, what format is your users database already in. For example, do you have some sort of CMS functionality where you have captured user's data, do you have an Excel spreadsheet, Facebook fan page etc.? In other words, how is your user data currently stored?
EDIT - sorry, this was too long to go in the comment field
Data is stored in a mysql database when a user register
So it's some sort of custom form which captures the user info into a database? If you have less than a couple of thousand users and you only need to do this once, probably the easiest thing to do would be to export your users out from the database into a CSV file - see How to output MySQL query results in CSV format? or just use PHPMyAdmin depending on your level of file access.
Many open-source forum softwares (e.g. PHPBB and Phorum) have the ability to import a CSV file, so all you'd have to do then is get a template for your import CSV file, and copy your user data with the correct formatting into this. MyBB (mentioned by Damien) seems fine, and already has some merge functionality - see http://www.mybb.com/downloads/merge-system - I'm not sure if this would suit you though since you haven't identified an existing software (i.e. you might need to write a custom importer).
One trick I have learned is to create a user in any given database driven software (e.g. PHPBB), and export the appropriate user table to CSV using the technique I just mentioned (or using the built in functions in PHPMyAdmin). You can then use this as the template, and then read the data back ito the database, see Import CSV to MySQL . This can be a hit-and-miss technique depending on how many dependant tables there are for the user table.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Does anybody know of any open source project that deals with creating forms or surveys?
The engine needs to function something similar to Survey Monkey (surveys; each containing survey pages; each containing a survey element - radio boxes/check boxes/text areas or other components) - except that we have requirements to brand it with custom look and feel and we have our own custom form interactions. I believe that some of these custom interactions might be worth contributing back to the OSS community as well, but we would rather plug it into an existing project that creating one from scratch.
It would be preferable if such a project used PHP and MySQL but I am fine with any other combination. Any inputs on this would be very useful.
Yes, there are. The following may suit you best:
LimeSurvey
LimeSurvey basically contains everything you need for doing nearly every survey with grace.
ActiveCampaign
Conduct surveys with ease by creating your survey using our proprietary WYSIWYG survey design tool, deploying your survey to your respondents, and fully analyzing the results.
PHPESP
PHP scripts to let non-technical users create surveys, administer surveys, gather results, view statistics. All managed online after database initialization.
I can recommend JForm (http://sourceforge.net/projects/jformphp/). It enables you to create easily customizable forms from a php settings array.
I had built one custom survey as per my requirements over here. May be you can customize it and make it as per your needs and you can host it on your server too. It uses PHP / MySQL. Its not a complete solution though.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
i am looking for a form of data storage that will answer a few requirements. i realize these requirements are non-standard, and for now i'm using activerecord and ORM solutions like everyone else, but this is my "holy grail" - if you know of anything like this, i would be eternally grateful:
pure PHP
multiple repositories, preferably file based for portability, where i can instantiate by telling it "use repository [X]" - i don't want to pre-create repository [X], if i reference it, it exists.
zero database configuration - i don't want to create tables or export SQL dumps, if it's referenced in my code, it needs to be in the database, auto-created without any fuss, my code is my schema
hierarchical, not relational, ideal structure would be just a freeform, schema-less XML, but since XML performs horribly with large trees, it can't simply be an XML file.
i have experimented with flat XML storage (with xpath and xquery) but it gags on a mid-sized repository, and cripples the application.
i have also experimented with key=>value pairs dropped into a SQLite database with a single generic table, but that gags even faster, and re-forming even the simplest record from key=>value pairs is a performance decimator.
finally, i experimented with lucene as implemented in the zend framework, which was pretty close to ideal, apart from the no-update part.
any ideas, anyone?
I've been having great fun with RedBean, it's not quite designed for flatfiles, but runs on PDO, so it should be relatively easy to write a sqlite module for it. Not sure if it will work for your needs, but definitely worth taking a look at.
Here are some links you may find useful:
txtSQL
Gladius DB
Also, have you considered using Berkeley DB?
Some of the DB extensions listed in the PHP Manual are intended to be used on flat-file like databases.
From your description it seems like PHP arrays should work perfectly:
pure PHP
multiple arrays, file or memory based
your code is your schema
hierarchical
You could use serialize() or var_export() functions to enable file storage.