I have Mobile App which updates MYSQL database. There are multiple users using this app. Our goal is to track changes made by these users and display it on a webpage.
I want to make a webpage in php where I can see stats.
So my question is how to detect changes in database (which are made through App) and display the 'Stats' of it on Webpage with the help of php?
Thanks
Related
I want to access and display data from a website which is like a notice board, i.e, data content keeps getting updated at irregular intervals. Whenever any new content is updated I want the user to get a notification. The content updated might have links which I want to include in my app.
Initially I have to login to the access the data on which I found several satisfactory tutorials. The website is php based(link). How can I retrieve this data with minimal delay and in a readable format?
I have already read this.
I'm building a web application using PHP & MySQL. A user profile displays MySQL data using a select query like so:
SELECT a.name_first,a.name_last,b.bio_category,b.bio_short,b.bio_full,b.profile_img
FROM stars_login a, stars_data_bio b
WHERE a.id_s=b.id_s
AND a.id_s='$select_id'
The $select_id variable is defined using ?id= in the URL like so:
http://localhost/public_html/profile/profile.php?id=1
I'm also looking at turning the web application into a phone app. I don't have much experience creating native apps as I'm more of a web designer.
I have however used Adobe PhoneGap before (cheating kinda, I know).
My question: is there a way to display a user profile in an Adobe PhoneGap app using a similar method to my exploded URLs in PHP?
Eg: there will be a search bar on my PhoneGap App home screen, where a user can search for a username. When they hit the search button they will be redirected to the profile view (similar to the profile.php page on my website). The PhoneGap profile page will then show the SQL data for the corresponding user.
I'm not sure if this is possible, but if it is, could you let me know how to go about it?
Also - how would I display the data that is stored server side on my local app?
I'm fairly new to all of this - I'm 18 and self teaching for a personal project of mine. All help is appreciated!
You can do this in your Hybrid app:
Create an HTML form which will serve as the front end to user
Use AJAX to send input from the user to your server
Process whatever pass parameter/s in that ajax request (such as the query you mentioned).
Return the result as json/jsonp then display the result back to the front end (no.1)
Im creating an app where the user inputs match events in a rugby game and the player who done it. e.g. pass,wing or try,scrumhalf. This information needs to be uploaded to an external database for the website to have access to it.
I don't want every time the user clicks an event for it to upload it to the database. I want them to do a whole match with it somehow storing it on the ipad. The user then clicks an upload button and all the events get uploaded to php which then inserts them into the database.
How is the best way to go about this?
I've tried everything and not sure.
Suggestions and example code would really be appreciated.
Thanks
Sounds like your app should /may do a 'simple' call to a REST-API.
You should find a lot of examples for that. For networking you should find a more comfortable lib at cocoapods.
As i have small requirement regarding tracking information from different parts of a flash file using php mysql. Means in a flash game i will be having preloader part, more games button and logo inside the game. As i want to track that how many clicks are getting from these places using php mysql. Can anyone give me any ideas.
Use the URLRequest/URLLoader classes of ActionScript to send a request to your website. Parse the request with PHP, extract the GET or POST variables and insert them into your database.
I am making an offline website that needs to sync every night with a server. Our employees work outside and sometimes underground and need to access the site for its database. But once home they must send us their findings.
The first time they connect, I check with google gears if they have the sqlite database and if not I run a script to insert it. Once they have it, I sync their next appointments to their local database.
When they are done, the next day, they connect to send us every thing and to download their new appointments.
For now i was able to create the sqllite database and insert new values inside thanks to google gears. But i haven t found a way to read the database with php to sync it with our online database.
To go from online to off, with PHP I can write an array in a hidden field and then read that field with JavaScript. But in the other way i was wondering if there was on other way then creating a form with DOM and submitting it in JavaScript to read the values with PHP?
I need to sync a Lot of values, do you know if there is an easier way?
Thanks for your help
I have found vortex, a powerfull script for gear that helps sync everything from files to data. It will definitely help me.
Here is the link to the developer's blog. The download link is in there.
I will come back when the website works to help the interested.
You should use Ajax for posting your new data to the PHP server.
You could use jquery (or any other framework), their lootle of resources how to post data to php on the web.
Your webpage could have a button hidden when offline, this button would enable user to start a synchronization.
Here a tutorial from PHP and jquery!