CRM Database Design for multiple users [closed] - php

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
Ok, I have built a custom CRM web app for a client using PHP and MySQL. The app seems to work really well for them and so I have decided to create a commercial version open to the public.
The basic idea of it is that it takes the data captured from a website and then populates the database with that. At the moment there is simply and insert statement on the front end of the website.
The thing is, I want people to be able to sign up to the service, create an account and customise it themselves to suit their needs. My idea is that once they sign up they would be provided with a form action that submitted to their account when installed on their page.
Regarding tables in the database etc, currently there is simply a customers table as there is only one website using it. If people being to sign up and use the service, do i create a new table for every account? This might be right but it seems a bit silly to me. Or is there a better way of going about this?

Usually, it's better to add a customer_id column, and add a WHERE customer_id=12345 clause to all your MySQL queries. Having a separate table per customer is certainly possible, but it may not scale as nicely.

Related

Is it okay to use Firebase as function call like state if the data was change then call my server side (I used PHP) instead of Firebase as a database? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
I want to use firebase just a function call just to use my existing database and just to have realtime changes in my site.
Firebase can't magically add realtime functionality to an existing database. It actually has an entire backend infrastructure set up to enable its realtime functionality, which your database would be missing.
Some options:
Build your own realtime functionality on top of your current database.
Synchronize changes to your database with a copy of that data in Firebase, which you then use for updating realtime listeners.
Switch your data model over to Firebase completely.
And I guess the last option is:
Keep using your current database, without realtime options.
None of these is pertinently better or worse than the others, so pick whichever one makes most sense to you and be willing to change your mind along the way.

How do I create and run the custom database? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
When I created my pet site and visiting it. I noticed money systems and pet systems all need database for them. But I'm wondering is there any way to create new rows for money system? I need money system for that to purchase virtual pets and itens.
So is there any codes when i click on a thing in the site that adds or removes from database date? Thank you a lot!
I thought that follows that code before I know DB:
<?php
$coin=50;
?>
There are no 'magic buttons' working out of the box - you can get that kind of button but you need to create DB structure, connection, write proper functions/methods (depends on your coding approach) and then bind it to that button.
Even if you are going to use some package/plugin or whatever you find useful - you need to have configured DB to be able to use that.
It is even hard to send you some links with examples/documentation as you did not give any kind of information regarding what (I guess) CMS or service you are using.
Deliver more info and then there is a chance that someone will be able to help.

Membership site with PHP and MySQL [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I have a html site, and I have a page that acts as a bio for users (which I currently have to update by hand with html).
I want to create a membership login page, and I want users to be able to input their own data, that in turn updates their bio page automatically. With an option to upload images.
I read up and looks like php and mysql is the way to go, which I know nothing about. Is that the right route? Or is there an easier way?
Kick me in the right direction to get that setup please? I'm lazy and don't want to spend months figuring out how everything works just to setup one page...
Do not try to write everything your own.
If you only want the result fast, find some mature CMS to start from. Try Drupal or Wordpress.
If you want more control and not afraid to fight with code, try framework like Laravel or Symfony. Learn as much APIs as possible from the framework.
I would look into Wordpress. They offer hundreds of thousands of plugins that can achieve advanced functionality without writing any code.
Here is a Wordpress plugin called Ultimate Member that looks like it would achieve your desired functionality.

Populating a part of the site with dynamic content [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am a newbie and have been programming this site for a school. And I have been stuck in a part where I have to show the logged in users the subjects he/she is currently enrolled in. I am thinking of making it appear using Ajax with a click of a menu button on the left side. So how do I populate this with a card for each subject he/she is taking? The subjects is stored in a MYSQL database. I am currently using Codeigniter Framework. Would you suggest using scripts like Angularjs? I am very new to this. Here is the sample site:
If you are very new to this, I suggest you first use regular GET/POST based interactions with the site so that clicking on a button will reload this page, or a new one with the relevant information.
Once you have moved from total newbie to a novice/rookie, you can start converting some of those areas to Ajax.
Once you become fully comfortable with that, only then should you think using JavaScript frameworks like angularjs or backbonejs.
Its an incremental skillset acquisition, and is always best done like that.
All the best!

How to make multiple open source web apps use the same database [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I would like to set up an online store and a point of sale application for a food coop.
My preference is php/mysql, but I can't find any projects which accomplish both these requirements. I was wondering if it would be possible to use separate store and pos apps and get them using the same product database.
The questions I have about this are:
is it a bad idea?
Should one of the apps be modified to use the same tables as the other or should there be a database replication process which maps the fields together (is this a common thing?)
is it a bad idea?
The greatest danger might be that if someone successfully attacks your online store, then the pos systems might get affected as well. E.g. from a DOS attack. That wouldn't keep me from taking this route, though.
Should one of the apps be modified to use the same tables as the other or should there be a database replication process which maps the fields together (is this a common thing?)
If you can get at least one of the two systems to use the products data in read only mode, then I'd set up a number of views to translate between the different schemata without physically duplicating any data.

Categories