Current location: Hot Scripts Forums » Programming Languages » PHP » Filling out a registry form multiple times from an MySQL Database


Filling out a registry form multiple times from an MySQL Database

Reply
  #1 (permalink)  
Old 03-20-08, 10:13 AM
aeisecurity aeisecurity is offline
New Member
 
Join Date: Mar 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Filling out a registry form multiple times from an MySQL Database

Hello everyone

i have been looking at ways of importing the companys current customer database data into a zen cart database the current database table headers are layed out as follows:

customerId | name | address | postcode | country | telephone | email | username | password | isWebMaster | isSalesAdmin | lastAccess | isAffiliate

the old database was created about 5 years ago without upgrading in mind and its HUGE

now i know most of this data is useless but the important information is there

unfortunatly not all the data is simply copy/paste

email (ok)
name (first and last names in one field, sometimes only a company name)
address (all in one line not always correct)
postcode (ok)
country (ok)
email (ok)
password (ok)

The only way i can see the data working on Zen Cart is to create a script to fill out the form and the data that i dont have filled with something along the lines of "PLEASE UPDATA DATA" because the zen cart database structure is a bit overwhelming.

the goal here is to migrate the customers to the new database and cart software without customers having to sign up again.

Can anyone point me in the righ direction for making a script that would

1) fill out a form with data from a partially filled database
2) submit the data and go to the next row in the database

Many Thanks
Reply With Quote
  #2 (permalink)  
Old 03-20-08, 10:28 AM
blinn_shade's Avatar
blinn_shade blinn_shade is offline
Aspiring Coder
 
Join Date: Aug 2007
Posts: 540
Thanks: 0
Thanked 0 Times in 0 Posts
Have you tried kicrosoft access or excel to switch over the data?
__________________
Can you think outside the box but remain inside the box?
Reply With Quote
  #3 (permalink)  
Old 03-20-08, 11:02 AM
aeisecurity aeisecurity is offline
New Member
 
Join Date: Mar 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Hello thanks for the quick reply

Yes i have tried porting the data via excel but the database structure in Zen Cart is spread over more than one table unlike the current database and i dont know if it will all work once imported.
Reply With Quote
  #4 (permalink)  
Old 03-20-08, 12:03 PM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
You'll need a script that reads the existing database row-by-row doing transforms on the data. For things like the name field a series of simple tests could decide what to do with it. Addresses are considerably more difficult, but they could be processed repeatedly and then passed or failed depending on the result. Some of the data will very likely be impossible to import properly in a purely programmatic fashion.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Reply With Quote
  #5 (permalink)  
Old 03-20-08, 01:35 PM
Jay6390's Avatar
Jay6390 Jay6390 is offline
Code Master
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,330
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by End User View Post
Some of the data will very likely be impossible to import properly in a purely programmatic fashion.
Agreed. I highly doubt this will all be possible from a script alone
__________________
Useful Tutorials
[ PHP Video-1-2-3 ] [ MySQL 1-2-3 ]
For any php function reference type

www.php.net/FunctionName
Reply With Quote
  #6 (permalink)  
Old 03-25-08, 06:07 AM
aeisecurity aeisecurity is offline
New Member
 
Join Date: Mar 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Hello

Is this possible to accomplish? what is the best way of going about this if not with a php script.

Many Thanks.
Reply With Quote
  #7 (permalink)  
Old 03-25-08, 06:27 AM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by aeisecurity View Post
Is this possible to accomplish?
Allow me to repeat myself: You'll need a script that reads the existing database row-by-row doing transforms on the data. For things like the name field a series of simple tests could decide what to do with it. Addresses are considerably more difficult, but they could be processed repeatedly and then passed or failed depending on the result. Some of the data will very likely be impossible to import properly in a purely programmatic fashion.


Quote:
Originally Posted by aeisecurity View Post
what is the best way of going about this if not with a php script.
If you can't do it programmatically then you may want to consider hiring someone to transfer the info through basic data entry. Or, transfer as much as you can via a script and have them do what can't be parsed, like the addresses.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Reply With Quote
  #8 (permalink)  
Old 03-25-08, 08:09 AM
Jay6390's Avatar
Jay6390 Jay6390 is offline
Code Master
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,330
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by End User View Post
Allow me to repeat myself
LOL, sometimes I wonder if people actually read responses, since both me and you quite clearly stated it is HIGHLY unlikely that it will be possible
__________________
Useful Tutorials
[ PHP Video-1-2-3 ] [ MySQL 1-2-3 ]
For any php function reference type

www.php.net/FunctionName
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple drop down from mysql database prince PHP 1 05-30-06 02:13 AM
deploying multiple form application that uses Access database lschafer Windows .NET Programming 5 04-20-06 04:00 PM
Basic MySQL Database, I'll pay 5.00usd KeYBLeR Script Requests 5 04-12-06 05:51 PM
Basic MySQL Database 5.00usd Offer KeYBLeR Job Offers & Assistance 0 04-10-06 03:40 PM
SQL database registration form help vinhkhuong PHP 3 10-10-03 03:49 AM


All times are GMT -5. The time now is 07:38 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.