I have two websites which I'm going to call here mywebsite1.com
which has a MySQL Database and mywebsite2.com
which does not have a MySQL Database and both with PHP.
I need a database in mywebsite2.com
, so I wanted to use the database from mywebsite1.com
. My problem is "how do I do that?". It's easy to save data to the database, just send it as $_GET[]
data and do a query.
The problem is to read data from the database. What are my solutions? Is there any API already made? Should I output the data has an XML file ? I'd like to hear some solutions with pros and cons.
I have no possibility of buying an MySQL service for mywebsite2.com
, so please don't suggest that. This are the resources I have, so only use this in your answers OR other free solutions.