Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Sending data to mysql table using http post method and reading on php file......

Status
Not open for further replies.

jit_singh_tara

Full Member level 6
Full Member level 6
Joined
Dec 22, 2006
Messages
325
Helped
9
Reputation
18
Reaction score
4
Trophy points
1,298
Location
Delhi , India
Activity points
4,295
Dear Friends ,

i HAVE AN APPLICATION WHERE I HAVE TO SEND 300 character string to a table in mysql on my web server.....from a gprs modem using microcontroller.

Using AT+HTTP COMMANDS.

Please suggest :

1.how to proceed for inserting this long string into mysql table.
2. I want to use at+http post command where the data is sent like this....:

(i have already acquired network address for gprs modem so not showing the related commands to acquire address)
Code:
AT+HTTPINIT

OK

AT+HTTPPARA="CID",1

OK

AT+HTTPPARA="URL","http://...............................co.in/string_v1.php"          

OK

AT+HTTPDATA=300,60000

DOWNLOAD

OK

AT+HTTPACTION=1

OK

+HTTPACTION: 1,200,891

AT+HTTPTERM

OK
-------------------------------------------------------------------------------------
I am getting ok response from server(+HTTPACTION: 1,200,891)

How do i access this data in the .php file....

I want to store the complete string in a column of the table.

I am able to store small data using get method ex:
$data1=$_GET['v2'];
$data2=$_GET['v3'];


v2=3245&v3=1234 etc was sent using http get method.

But my concern is how to access the complete string of 300 chars. using post method and inserting it into a table column.
 
Last edited by a moderator:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top