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.
Related
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 2 years ago.
Improve this question
I would like to set up user system in Wordpress, which is not limited to writing post or comment. Instead I would like to store custom user data (in my case users are tutors) for example the subject they teach and the price they charge. How could i do it with PHP or Sql?
You have two options here:
A) modify the registration form/process and request the users/tutors to input additional data when they register on the site; this will also require you to provide them with a user friendly interface screen where they can update/edit their information. What I usually do is create a view to display the user's info on the front end and then when loading that page check if the user is viewing their own profile and if so, load additional edit options in line with their data - I then use AJAX to allow them to update their own info.
B) if you want to manually manage this info yourself then simply have the users/tutors fill out a form and then you can update/edit a custom post-type called sevenine-tutor that you'll have to register/create in the system.
In theory you'd want these users managing their own profiles so option A) is probably the right route to pursue.
Questions like this are hard to answer because they're purely theoretical so there could be numerous ways to tackle them and whether an answer is correct or not is purely subjective. My advice would be to break your idea up into chunks and try tackling functions one by one and if you get stuck on something, then post relevant code here or to wordpress.stackexchange.com and get answers to very specific technical questions.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am working on a project that I need to let users to create pages on my server. however, I do not want to let users clutter my mysql database by storing the stuff in there so I cannot use mysql database for creating the pages.
I did research this topic and there seem to be a some sort of a plugin for WP that will allow virtual page creation.
is this possible using pure php WITHOUT the use of any database ?
It's possible, but wrong.
You can use php to write a html file to your web directory, sure. But that
solution is in no way cleaner or less cluttered than putting stuff in your
database, for a few reasons:
It's easier to have structured information in the database
It's a good thing conceptually to separate user data from your program
It's easier to control access to your database in a safe way, compared
to writing user data to the file system
"I really do not want to use mysql database" is not a good reason to give this
up. You might have a good reason, but it's not easy to guess what that is, which
makes suggesting alternatives very difficult.
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 9 years ago.
Improve this question
I am trying to create a site with a tiny CMS, the problem is that there is only php installed on the server.
The site will mainly consit of two pages the user page and admin page. On the user page there is to be a bunch of checkboxes which when checked will do some math(not the problem I need solved). On the admin page you need to be able to add the checkboxes and assing them their values.
My approach was to read and write to a XML file that contains the data instead of a database. I have run into a lot of problems trying to accomplish this, and I am looking for some good ideas for how it can be done, or alternatives.
Thanks in advance.
You can use sqlite as database engine. This way you also create a portable version of your application and by using PDO you could always switch to another database engine later on.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to create 200+ pages with products.
I have 5 categories.
I made a prototype .php file that it will include everytime the correct product1.php or product2.php each time (with GET).
Moreover I want to have each time different meta-tags. So prototype.php will include and the metatags.
I want advise b/c I dont know if my thinking is correct (To create 200 products php files that they will contains images, pagagraphs etc and 200 metatags php files that they will contain every product metatags with descriptions / keywords etc )
I have been confused b/c I think if I will try to create a database it will more easier.
But I want to know If I choose the msql solution will be faster or slower than the solution that I wrote before.
If you want any details or I miss something please tell me!
A database is absolutely the way to go with this. No question.
I recommend looking into MySQL, and learning the PDO method of using it.
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.