Changing database without changing the whole PHP code [closed] - 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 10 hours ago.
This post was edited and submitted for review 9 hours ago.
Improve this question
I am exporting my system into a desktop app using PHP Desktop and MySQL. But in order to access it, I still have to start XAMPP.
So I am thinking of converting the database to SQLite.
My question is... Do I need to change my whole code like starting from the scratch or I just need to change the database connection?
Because I already build a GUI. And the only changes I want to make is the database.. I have seen some questions but it's not what I'm looking for.
Please guide me. I am new to this so Im sorry as I don't have enough knowledge in programming..
I haven't tried anything yet.
I am expecting to convert my database without changing the codes of my GUI and function buttons...

Related

How can I Print a result on webpage using php getting from MySql 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 7 years ago.
Improve this question
I have a school website, I have uploaded the students examination result to the database but now I want to make a search bar by which can the student search their result by typing their roll number.
please someone give me the code. please
#wajahat-aftab - you can always find a great tutorial to do this. Here are few of the links
https://www.youtube.com/watch?v=N_S7_wg87GU
http://html.net/tutorials/php/
http://www.htmlgoodies.com/beyond/php/article.php/3472391
Basically you need to get the data, manipulate it and send it to the HTML page. Once you get the data in HTML you can present it any kind of look-n-feel as per your needs.
You can not expect exact answers for such questions - so I suggest you to be more specific with QUESTION and make sure that you also share the source code that you tried so far.

Extracting data from other websites (not illegal) [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 am creating a football transfer site and i want to know how to extract particular pieces of data from a site and insert it into mine. For example, this site : http://www.footballtransferleague.co.uk/football_rumours.aspx , shows you transfer rumours and I want to insert them into my site however they update every 24 hours so I want the new data to appear on my site aswell.
Im not asking for any code, just some tips or videos that can be used to learn about this.
Before anyone says this is illegal, football rumours are considered as 'facts' hence available to reuse.
thanks in advance !
Try with this tool. It downloads the pages with the code that is only translated like html, js and sometimes php. i don't know if it works with .asp .aspx.
htttrack

How to post a picture from iPhone app (in Swift) to MySQL 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 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.

Weird exploit messing with email [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
Found a weird hack today someone was exploiting,
was wondering how this arbitary code could execute thousands of emails an hour.
http://pastebin.com/m7nBSmfB
There's nothing weird about the code you posted -- it builds up a PHP function in an obfuscated fashion -- then it calls the generated code.
The real problem/issue is, how is your server being made to run this code? If you have indeed been exploited by this, it's because you're allowing them to run arbitrary PHP code on your server.
You need to figure out how that happened.

database on php only server [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 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.

Categories