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
So, I don't completely understand how sql databases and servers work together. Tell me if I'm wrong. Okay, so, I can use Php to insert data into an SQL Database that is set up on the same server that is hosting the website? (Question edited)
If your server is from a third party, they may provide you with a tool such as phpMyAdmin. You can use this tool to create your database and insert information into it. That is, you don't necessarily need a server side language to create and insert data in a database. That said, you will need a server side language or framework to access and manipulate that data in your web applications.
If you are running your own server, you can install phpMYAdmin on it and do the same.
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 am little new to PHP, MySQL and web development. I have seen MySQL Views are "Virtual Tables" and can be used to represent data table virtually. And my problems are,
Are there any performance increment when we use MySQL Views in a PHP 7 MySQL application?
Are there any security increment?
Can we use MySQL Views for JSON REST API requests?
As far as I know. The view is like you save a query to a database. So you can save time to write a complex query.
I think yes. Because you can grant users access to view rather than directly to the table.
To get the data is yes, but a function like edit and delete I don't think so.
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
In order to find websites with potential sql injections, it is possible to use google dorks like "inurl:.php?id="
From the results that google will give, does it mean all the websites listed use sql database (mysql, oracle or any other)?
As it is a backend call, we can't exactly say, that it related to a Database as well. The reason is that while captured based on $_GET['id'], the returning value can be decided only upon the backend, solely based on PHP. So SQL connection is not essentially needed in that purpose.
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 have Microsoft SQL Server on my computer, and separately, a website. If the action of a form on my site is set to be processed by a php script, how can I use that script to connect to and add data to a database on the SQL Server on my computer?
Thanks!
You would first need the SQL PHP Drivers then you would need to determine your connection string. Then you would need to write the php code to insert into your database (Last Answer).
You also need to create a table with the corresponding schema to hold your data. This is a very broad question hopefully this puts you on the right track.
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 am trying to have users upload on imagine on the app I am developing for a class with Swift and posting it to my MySQL database with PHP but have no idea how to do this. I cannot find any sort of source code online for this and am at a loss for trying this myself.
Does anybody know how to do this?
Though you can technically store images in a MySQL database, it's really bad practice.
Instead, you'll want to store the file in a disk directory. Since this is a broad question with an almost limitless amount of ways you could achieve your goal, here's one suggestion:
Send the file as POST data to your server.
Store the file using PHP.
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.