PHP & MYSQL tables [closed] - php

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 5 years ago.
Improve this question
I'm trying to figure it out this simple issue. I have two tables
1) Services
2) Projects
Some projects are using only one service_id (ex: web dev), but other are connected with two or three of them (ex: web dev, branding) and I have only one table call service_id. How can I add more than just one service_id?
Services
Projects

Like #ccKep wait, you need to create a table to link Services with Projects. So your database structure would look like:
You can then combine as many services to as many projects as you want. Projects_has_Services contains pairs of (service_id, project_id).

Related

Multiple database connection with same table manes laravel [closed]

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 5 years ago.
Improve this question
I have two database having tables with same name.
I am using laravel to connect through this.
Note : I am able to make multiple connections but I am unable to access tables having same name.
Example
Database 1 :
Table: ads
Database 2
Table: ads
How can I make database connection / model for these two different tables having same name , which are in two different databases.
refer your tables with db names... for example db1.ads & db2.ads ... hope it helps

Web service to insert and view database data [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 5 years ago.
Improve this question
I need a web-service which allows admins to insert new data and viewers to see this data-tables. Therefore at first i need a database (Mysql ?). Is a mySql db on a server the right choice? Afterwards a website should be connected to this db, where users can see specific tables and admins can add new lines into this tables. Finally this tables should be able to only show the last xy-lines of the respective table.
Use-case: I have a restaurant, and when I get orders, i want to provide a simple table where the telephone-workers can add new orders (e.g. 3x pizza salami); afterwards this table is opened with view-rights on a display in the kitchen. So the chefs can create the orders.
Which database is the optimal here?
What kind of web-service is the right and how is this connected and set up?
You can use MySQL or SQL Server. And you can use Web Pages instead of web-service.

Trying to auto fill up a database table concerning mobile phones brands and their models [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 7 years ago.
Improve this question
I want to fill up a database table concerning mobile phones and their models from a website like gsmarena, only the brand and the model. Am using microsoft sql server, but to fill it i think i can do that with a php crawler, is there any alternative or any tip to do that easily?
GSMArena doesn't seem to offer an API it seems, so there's no other chance for you than to scrape their website. However, that might be illegal. Ask them first.

How to create users like students and professors on MySQL? [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 7 years ago.
Improve this question
I'm a newbie with PHP and MySQL. My project is about creating a website online on which I can put my school friend's grades and manage them. The problem is that I don't know how to separate users students/teachers.
I got an idea but still not clear. If in login page a make a radio button and add on it like this: "Student or Teacher". If they choose teacher I must test teacher's accounts to login in them to midify page.
You should look into the user/group/role pattern. You'll enter individuals into groups and assign roles to groups. You'll have to decide if you want one role per individual or many.

Symfony 2 search in hundred thousands rows [closed]

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 search for my website developed under Symfony2, what questioned table database of hundreds of thousands of lines 2 columns.
Currently I use FULLIndex and like it, but it takes forever to respond, as this search engine is the very keystone of the site.
It therefore I need a strategy to implement, technical or network to optimize this search on this table and others as large and multiple columns.
Thank you in advance !
If you have a big database and you want to search data in it, I definitely recommend you ElasticSearch
There is a good bundle for this here.
This bundle is maintained by FOS. It's very easy to make it work in a symfony2 project

Categories