Click here to Skip to main content
15,884,537 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I need to retrieve data from mysql and the front end is PHP... How can i retrieve it using C code..

If any change is made in PHP this will reflect it in db also, how can i retrieve it using C
Posted
Comments
enhzflep 31-Oct-14 0:52am    
Just the same as you would retrieve an image or an mp3 or an html document with C.
Send a GET request to the server for the PHP file.
You'll need to make use of sockets or a library that does. It's not that hard at all. There's lots of code/tutorials around for downloading a file from the net using c.
LaxmikantYadav 31-Oct-14 1:48am    
Can you please tell us why you required C code to access data from MySql why you cant access it directly from PHP ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900