|
Register •
FAQ
• Search • Login
|
|
Page 1 of 1
|
[ 2 posts ] |
|
Author |
Message |
mavmak
Joined: 09 Nov 2010, 09:35 Posts: 1
|
HTTP POST
Γεια σας, έχω το εξής πρόβλημα, έχω ένα script σε php στο οποίο θέλω να περνάω παραμέτρους μέσα από http-post ο κώδικας μου είναι ο εξής:
<?php $handle = mysql_connect('localhost','root',''); if($handle==false) { die('No database connection'); } $db=mysql_select_db('test');
$query='INSERT INTO people (id,name) VALUES ("'.$_POST["id"].'" ,"'.$_POST["name"].'" )'; $result=mysql_query($query);
?>
Θέλω να περάσω τις παραμέτρους id, name ώστε να καταχωρηθούν στην βάση, δηλαδή να κάνω HTTP POST μέσα από το android, μπορεί να βοηθήσει κάποιος?
|
09 Nov 2010, 09:43 |
|
|
ventrix
Site Admin
Joined: 24 May 2008, 23:50 Posts: 626 Location: Athens
|
Re: HTTP POST
για δες εδώ: viewtopic.php?f=3&t=1184&p=3346#p3346είναι ακριβώς αυτό που ψάχνεις!
_________________ Chief Software Engineer @ PinApps.com Κωνσταντίνος Πολυχρόνης Πρόσθεσε την εφαρμογή σου:
|
10 Nov 2010, 12:51 |
|
|
|
|
Page 1 of 1
|
[ 2 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|