send text data from one website to another using php

Closed

Description

I have a script that receives information from a website run by an article distribution service, and inserts the article, and author, etc, into a database on my site.

I want to use a similiar technique on 2 of my web sites, one sending data and one receiving data. I need the php code for the sending site. Most of the data is in simple small fields, maybe 6 to 20 characters in length. There is one large field that could be 5k to 10k in size. No binary data, just text characters.

I would need a simple form to accept the data, and the php code that "sends" the data to the other site. The sites are NOT on the same server. I would supply the php code from the "receiving" site.

## Deliverables

this is pseudo code for the receiving program.

field1 is an integer field

field2 is a string field, max 12 characters

field3 is a string field, max 100 characters

field4 is a text field, capable of up to 10,000 characters (if there is some limit and 10K is too big I can lower this to 6K)

field5 is a date/time field

I have all the working code to connect to the database. If this outline looks good to your plans for this project, I just need you to supply the correct mySQL insert based on above field types, and any code required to "receive" the data sent by the sending program. I will fill in the rest.

<?php

if (!$_POST)

{

echo "You do not have authority to view this page!";

die();

}

$link = mysql_connect($dbhost, $dbuser, $dbpasswd)

or die ("Could not connect to MySQL");

mysql_select_db ($dbname)

or die ("Could not select database $dbname");

mysql_query("INSERT INTO table1(field1, field2, field3, field4, field5)

VALUES(postvalue1, postvalue2, postvalue3, postvalue4, postvalue5)

or die(mysql_error());

?>

Skills: Engineering, MySQL, PHP, Software Architecture, Software Testing

See more: text to string, supply one, simple binary code, sent one, binary to text, article distribution service, sending data site, i want to be an author, web die, pseudo code, from fill, rest service data, form connect database mysql, php insert select, send receive data php, fill form data site, send data form database php, insert php code form, php mysql big data, 2008 connect server, connect database php form, binary string, mysql php rest, pseudo code code, string integer

Project ID: #3163872

Awarded to:

zarzor2010vw

See private message.

$9 USD in 14 days
(164 Reviews)
5.2

22 freelancers are bidding on average $42 for this job

cevouk

See private message.

$34.85 USD in 14 days
(199 Reviews)
7.5
myktm

See private message.

$42.5 USD in 14 days
(211 Reviews)
6.6
s17

See private message.

$34 USD in 14 days
(372 Reviews)
6.6
yubbsoftware

See private message.

$21.25 USD in 14 days
(111 Reviews)
6.4
mabdelmonem

See private message.

$17 USD in 14 days
(137 Reviews)
6.4
marconian

See private message.

$63.75 USD in 14 days
(121 Reviews)
5.6
slvolz

See private message.

$42.5 USD in 14 days
(22 Reviews)
5.2
toinnisfreesl

See private message.

$55.25 USD in 14 days
(36 Reviews)
5.3
cmcintosh82

See private message.

$85 USD in 14 days
(16 Reviews)
6.1
asalah

See private message.

$42.5 USD in 14 days
(33 Reviews)
4.5
zincksoft

See private message.

$25.5 USD in 14 days
(26 Reviews)
4.0
korgoth

See private message.

$42.5 USD in 14 days
(11 Reviews)
3.7
rajphpexpert

See private message.

$25.5 USD in 14 days
(7 Reviews)
2.8
tntc4

See private message.

$51 USD in 14 days
(4 Reviews)
2.5
nitrocubeeu

See private message.

$59.5 USD in 14 days
(2 Reviews)
2.1
webburners

See private message.

$17 USD in 14 days
(5 Reviews)
2.0
webxite

See private message.

$42.5 USD in 14 days
(4 Reviews)
0.3
luka8088

See private message.

$85 USD in 14 days
(0 Reviews)
0.0
espinha

See private message.

$34 USD in 14 days
(0 Reviews)
0.0
codebadshah

See private message.

$4.25 USD in 14 days
(0 Reviews)
0.0