Socket connection, pack unpack??

Hello all,

I have a server and client program which eventually I will use the server program to insert values into a mysql DB. When I send the data across, only the first character of each string is displayed and I can't work out a solution.