Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Pro PHP
| Search | Today's Posts | Mark Forums Read
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 2nd, 2004, 03:59 PM
Authorized User
 
Join Date: Feb 2004
Location: Henley, Oxfordshire, United Kingdom.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mekh Send a message via Yahoo to mekh
Default Interfacing PHP/MYSQL to existing Database...

Hi,

Can anybody please help me or give me any idea about interfacing PHP/MYSQL to any existing Database like dbase III...However is it possible to do so? Otherwise is it possible to retrieve the mysql data in the existing form...?

Thank You..

mekh
__________________
MD Gurung
 
Old February 2nd, 2004, 07:08 PM
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, PHP has a dbase extension that allows you to access dbase databases. You could write a little script that extracts all the records from DBF and insert them into MySQL.

It would probably be easier if you used a conversion tool.

A simple google search (import dbase dbf into mysql) yields many results. Among them:
  http://www.sqldbu.com/eng/sections/t...sqlimport.html


Take care,

Nik
http://www.bigaction.org/
 
Old February 3rd, 2004, 05:51 AM
Authorized User
 
Join Date: Feb 2004
Location: Henley, Oxfordshire, United Kingdom.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mekh Send a message via Yahoo to mekh
Default

Thank you Nik,

Actually I want is interfacing my PHP/MYSQL website with the TELEMAGIC that is running since last 5 years...Can you please suggest me what can I do?

Thanx
Mekh



mekh dev gurung
 
Old February 3rd, 2004, 02:52 PM
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Telemagic should allow you to export data. I don't know what format it exports it in, but if it's text based, you should be able to write a fairly simple parser in PHP that'll read that file and import the data into MySQL for you.

Of course, it'd be much easier if you can get telemagic to export it's data in SQL format...

What does the telemagic documentation say?


Take care,

Nik
http://www.bigaction.org/
 
Old February 4th, 2004, 08:02 PM
Authorized User
 
Join Date: Feb 2004
Location: Henley, Oxfordshire, United Kingdom.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mekh Send a message via Yahoo to mekh
Default

Thanx NIK,

Actually I mean extracting the DATA from PHP/MYSQL to TELEMAGIC which is using dbIII... However I don't know how is dbase working there...
Is there any idea like exporting data inside any Normal Form...?

Take Care

mekh

mekh dev gurung
 
Old February 4th, 2004, 10:02 PM
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, you should also be able to do a data import into telemagic. It probably recognizes standard SQL and/or CSV (comma-separated values). You can easily write a script (or download one) that dumps MySQL contents into these formats. For example, PhpMyAdmin supports several different dump modes.

Again, I've never used telemagic so I'm pretty much useless to you -- read the manual for Telemagic, specifically the areas that deal with importing data. It might just be that it has an ODBC driver that can connect to MySQL directly.


Take care,

Nik
http://www.bigaction.org/
 
Old February 8th, 2004, 06:04 PM
Authorized User
 
Join Date: Feb 2004
Location: Henley, Oxfordshire, United Kingdom.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mekh Send a message via Yahoo to mekh
Default

Thanx NIK,

I will try my best and do inform you whenever I got through this problem...Do keep in touch

Mekh




Similar Threads
Thread Thread Starter Forum Replies Last Post
entering £ (pound sign) into MySQL database - PHP crmpicco PHP Databases 1 November 14th, 2007 02:02 AM
Adding a column to an existing SQL database table furjaw SQL Language 10 May 17th, 2007 06:35 PM
create database in mysql through php coding vivekananth PHP Databases 2 January 31st, 2007 01:48 AM
begin php & mysql - chapter 12, user_form.php jon_stubber Beginning PHP 1 March 9th, 2006 10:57 AM
Adding existing and non-existing attributes spencer.clark XSLT 5 July 27th, 2005 04:02 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.