Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





How To Grab MS Access Data Into Mysql And Vice Versa?


I'm developing an online ordering system, using PHP and MySQL database, which requires me to integrate with MS Access database to get some data . for example : application status.

fyi, another system is developed using ASP and MS Access database to keep track of the application status since the status are always changing.

i have to grab the application status of a particular record and update the MySQL database. this has to be done sort of the 2 databases are 'linked' together.

any update/new records inserted into MySQL will be known by MS Access and any status update in MS Access will be known by MySQL. something like that..

is it possible to link the 2 different databases?




View Complete Forum Thread with Replies

Related Forum Messages:
Converting Strings To Numbers And Vice Versa
I am writing a program to enter shipping zones for zip codes in a table. Obviously I dont wnat to enter 1000 entries, so Im allowing the entry of a beginning prefix and ending prefix (the first 3 digits of the zip code) and then letting the user assign a zone.

Trouble is, that zip codes in the north east start with either 0 or 00 in some cases. What I'd like to do, for instance is have the user enter 010 for the start, 067 for the end, then my program would then iterate from 010, 011, 012, 013, 014......066, 067, and build a reference to the zone code. The resulting db entry would be a single entry fpr each prefix and associated zone.

What Im running into is that in order to do this I need to read in 010 as 10 (the number) then add to it iteratively using a for-- statement, and then simply concatenate the Zero on the front end.

View Replies !
How To Convert Array To String, And Vice Versa
I have some items, numbered from 0 upwards. Some of them may have a string attached. All these items need to be represented in a single already existing database record. So, I thought of taking an array, as it might be looking thus (the values are all strings):

View Replies !
How To Convert MtSql To Excel And Vice-versa
I want to convert MySql to Excel and Vice Versa. I downloaded a utility mysql-to-excel from the net but the problem is that my hosting company does not allow remote connectivity to the database.

I tried to play with the phpMyAdmin but could not get to it. Although there is a option of export, but when i click on it, there is no space where we can specify that where the exported table should be downloaded.

I have to edit around more than 3000 rows. Doing this though the software admin is very complicated as I have to go to that page, click edit, again click edit aganist the text that needs to be edited. This wastes lot of time and bandwidth. Code:

View Replies !
Radio Button - How To Unchecked Female And Vice-versa.
i've got 2 radio button(male and female) 1)when user select male, how to unchecked female and vice-versa.

View Replies !
Invert A B&W Image (so That The Black Becomes White And Vice Versa).
I'm new to the GD functions and wondering if there's anything that would enable me to invert a B&W image (so that the black becomes white and vice versa).

View Replies !
Converting Special Symbols To Escaped Characters And Vice Versa
Say I wanted to convert strings like '

' to "
" or '
' to "
".

Without using a bunch of successive str_replaces, how might I go about doing that? Is there some built-in PHP function that'd let me do that?

View Replies !
How To Convert A PDF File To A Text File And Vice Versa Using Php
I want to convert a PDF file to a text file and later I again want the text file converted back to a PDF file. Are there any functions in PHP to accomplish this purpose?

View Replies !
Grab Data From Mysql For Specific Date
I am trying to make some code with PHP and MySQL for displaying data from table corresponding to current server date (only field with date corresponding to server date will show on webpage). PHP Code:

View Replies !
Best MYSQL Data Access?
I was just wondering if anyone had, or knew of a good MYSQL dataaccess layer for PHP.

I am using the smarty templating system, which mainly handles arrays and such so if anyone has any ideas.

View Replies !
Transfer Data From Access To MySQL
How easy is it to transfer datafrom a MS Access database to a MySQL one? How can this be done?

View Replies !
Import Data From Access Database To MYSQL
I have some data in access database. I wish to import it (keeping the same structure) in MySQL.

Also I want to know what will be procedure for importing data from databases like Oracle, Sybase, Informix etc.

View Replies !
Hiding MySQL Access Data In Php File ?
If I connect to a mySQL database with php I have to write the access data into the php file,eg.:

$hostname = "my_host";
$username = "my_name";
$password = "my_pwd";
$dbName = "my_db";
$userstable = "my_table";
MYSQL_CONNECT($hostname,$username,$password) OR DIE("Unable to connect to database");

Is this secure ? In other words: can it be read by a bad boy ?

View Replies !
Using PHP To Migrate Data From Shared Access Db To MySQL
I've read some online resources that utilize various MySQL
command-line actions to migrate data from Access to MySQL.

The situation is this: a group of co-workers of mine will be using an
Access db in a shared source (for now, a directory.. ???) to be able
to generate reports on the fly. What they want to do is to be able to
migrate that data to a MySQL db instance that currently exists on a
different server.

What would be the best way to do this within a PHP wrapper (if even
PHP at all, which I prefer); if so, what are the ways I can ensure
security as this is US Federal Government data and thus must be locked
down tight?

View Replies !
Read Data From MS Access Into MySQL In Real-time
I am currently working on a project that involves reading information from a inventory system into Access via ODBC and display the info on the web site using MySQL.

I would like to create a live link between the MS Access(local) and MySQL (remote) whenever the inventory system is updated MySQL will be updated as well.

I know that MyODBC will let me do the opposite of what I would like to accomplish by reading data in MySQL into Access. Is it possible to do the reverse way.

View Replies !
Grab Data From One Form To Another
I have a text box which I am using for inputting quantity and I have a unencrypted paypal buy now button. Here is the code for the 2 forms:

PAYPAL:
<input type="hidden" name="undefined_quantity" value="1">

No Of Tickets:
    <LABEL for="ticketno">How many tickets would you like: </LABEL><BR>
              <INPUT type="text" id="ticketno" size="25"><BR><BR>

Now what I want to do is when I press the paypal button I want to quantity of the quantity field added to the paypal quantity field. Im thinking of using a php script to grab the field data and paste it into the specified field.

View Replies !
Grab Data Whatever The Current Month And Year Is
I have database with a date field and I would like to have a query setup to grab data from it using whatever the current month and year is. My date field is currently in the 0000-00-00 format. I wanted to know if this can be done.

View Replies !
Mysql Update - Grab The Value Count From Mysql
I'm trying to grab the value count from mysql and add one to it. This is very simple, but I"m still completely lost! here is the code:

require("connect.php");

$result = mysql_query("SELECT fav_count FROM favs WHERE page_id = $page");
$result++;
mysql_query("UPDATE favs SET fav_count = $result WHERE page_id = $page");

echo "Thank you for telling us you like this!<br />Please wait...";
echo "<META HTTP-EQUIV=Refresh CONTENT="2; URL=link.php">";
Any help is greatly appreciated!

View Replies !
Grab Info From Mysql
Here's the situation. I have a table w/ 1 entry w/ only 3 fields

ID   |   password   |   update
01   |   blahblah   |   09/01/2007

  I just want to grab the password and update from that. This is how I am currently doing it (please dont laugh)

$query = "SELECT * FROM incpassword";
$result = mysql_query($query);

while ($row=mysql_fetch_array($result)) {
$grabpswd = $row['password'];
$grabdate = $row['update'];
}

Is there an easier way to assign a variable to those 2 values w/o having to use while. Especially considering there is only 1 entry and only 3 fields.

View Replies !
Howto Grab Previous And Next Mysql Row
I have build a base with events in them (with a Y-m-d date) and i want to put on the "showevent" page a link to the previous event and a link to the next one.

View Replies !
Grab Mysql Field Name With Script
i have a php script that is finding a row in a mysql db and returning one of the field values from that row, and assigning the value to a variable. this is all working well, pretty basic. but i have an requirement that is a bit weird. i need to also grab the field name (aka the column title) for the value that i find.

View Replies !
Using MS Access To Hold The Data And PHP To Collect The Data From The Database
I am using MS Access to hold the data and PHP to collect the data from the database and display it on a website. I've got the results displaying in the normal way with data being displayed in a linear manner e.g. Code:

View Replies !
Grab Rows From A MySQL Table And Put Them Into An XLS Excel File
I have a problem where the code below, which is used to grab rows from a mySQL table and put them into an XLS Excel file, is a bit broken in that it won't include the first row from the recordset. Code:

View Replies !
Grab A Column Of Phone Numbers From Mysql Table
Im trying to grab a column of phone numbers from mysql table, send all the records across a hidden form field along with a message text area and reply field.once submitted grab all the records from the phone number column and format it to:

$mobile = '12345,456788,566788,etc';

also grab the message post and reply post data Basically so I can send a the same message to all the mobiles.

View Replies !
Grab Previous And Next Datess From Current Date In Mysql
I'm trying to figure out how to grab both the previous and next date (if they exist) in MySQL based on the date of the current ID. There won't always be a record for each month, otherwise I could test a range +/- one month. Relevant fields are id and release_date. I can use a self join to grab either previous or next in separate queries, but I'd like to do so with only one query and grab both. Here's what I have for previous date. Code:

SELECT e1.id, e1.release_date
FROM our_desk AS e1, our_desk AS e2
WHERE e2.id = 5
AND e1.release_date < e2.release_date ORDER BY e1.release_date DESC
LIMIT 1.

View Replies !
Grab Data From A Table, Echo, Then Insert It Into A New Table...
I'm trying to do is count the number of times usernames shows up in a table. I then want to reinsert that information into a different table with the Username in column1 & the occurrences in column2 for every user that is echoed on the page. Code:

View Replies !
PHP - Data From Access Db
I'm using the code below as a base for a connect to an access
database.
This works well, but I have an issue...

<?php
$db = "./access.mdb" ;
$pass = "1234" ;

$conn = new COM("ADODB.Connection") ;
$sql = "DRIVER={Microsoft Access Driver (*.mdb)} ;
DBQ=". realpath($db) ." ;
uid=admin ;
pwd=$pass ;" ;
$conn->open($sql);
$rs = $conn->execute("SELECT * FROM TableName");
while (!$rs->EOF) {
echo $rs->Fields['FieldID']->Value ;
echo $rs->Fields['FieldName']->Value ;
$rs->MoveNext() ;
}
$rs->Close() ;
$conn->Close() ;
?>

using this:
while (!$rs->EOF) {
echo $rs->Fields['FieldID']->Value ;
echo $rs->Fields['FieldName']->Value ;
$rs->MoveNext() ;
}

View Replies !
Using PHP To Access WinAmp Data
Does anyone know of a way to use PHP to display on a web page the playlist (m3u) information for a file currently being played by winamp?

Note this is not about *controlling* winamp, but accessing data in real time to display current file / playlist name being played.

View Replies !
Access Data In Webpage
I have a data base in access having 6 columns and around 120 entries. I want some script or some coding through which I can extract the data into a webpage.

for example say if I create a link with TTT and on clicking this TTT the next page should display the results from database in a webpage in table format ..

View Replies !
Data Access Class
I'm working on a class to access a MySQL database. One function I'd like to have is one that lists the records in a table. But, I'd like to be able to read from a loop. Ex:

while ($x = $class->function())
{
echo $x['fieldname'];
}

View Replies !
Enter Data To Ms-access
i have a problem to enter information(record) to ms-access in php i have a error:

"Warning: odbc_do() [function.odbc-do]: SQL error: [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement., SQL state 37000 in SQLExecDirect in C:Documents and SettingsAdministratorMy Documentsdb7.php on line.

View Replies !
Grab Content From HTML Table And Place Into MySQL Table?
I am in the process of helping a co-worker upgrade some of his old static html pages into dynamic MySQL driven pages. He currently has a lot of pages with huge tables displaying data. Does anyone know if there is a script or class that can convert a table to a .sql file for upload?

View Replies !
Connecting To An Access Data Base
i want to connect to a Access data base but dont know how to do it. also how would u add more rows if needed and how would u write to the cells in the tables.

View Replies !
Access The BLOB Data Type
How should I access the BLOB data type using PHP from a MYSQL database ?

View Replies !
How Can I Restrict Access To Data File?
I have a php script that processes a form and then posts the user
input to a data file on the server in a comma delimited format. For
simplicity call the file "data.csv." The script is working well and
the data is posted correctly to the data file.

The big problem is that anyone can point their web browser to...

View Replies !
Importing Form Data To Ms Access
Does anyone know if one can import a web form data into ms access db? Does the ms access db have to be on the same server as the web form?

View Replies !
Access Those Session Data Through Cookie
Now I just want to know if this is correct, if i store information in my session and i have a javascript cookie class, i can access those session data through cookie, correct because all a session really ism is a cookie, right?

View Replies !
PHP And CSS - Storing The Data In An Access Database
I am creating a web based calendar for tracking appointments. I am storing the data in an access database(may go to MySQL later)I have three different catagories that i would like to display with different backrounds and font colors.

View Replies !
Access Anonymous Ftp And Parse Data
Hello everyone. I'm definately a newbie at this so go easy. I am trying to get together a script to access some aviation weather from noaa. They have an anonymous ftp server that you can access txt files with weather data in them. I'd like to make a script to access the airports from a specific state (which are defined in the script which airports for which state) and echo that to an html file. The script would have to 'find' the airports in the txt file then parse out the info. Here is an example of what's in the data files.

Code:
2006/01/18 17:00
GCFV 181700Z 190024 35006KT 9999 SCT030
BECMG 0911 10007KT
TEMPO 0818 VRB03KT

2006/01/18 17:00
GCLP 181700Z 190024 01010KT 9999 FEW030
BECMG 0911 06008KT
TEMPO 0818 VRB03KT

2006/01/18 17:00
GCRR 181700Z 190024 35006KT 9999 FEW030
BECMG 0911 09007KT
TEMPO 0818 VRB03KT

2006/01/18 17:00
GCTS 181700Z 190024 05008KT 9999 SCT030
BECMG 0911 15008KT
TEMPO 0024 VRB03KT

Can someone kind of point me in the right direction on how to do this?

View Replies !
XML Parsing - Easy Way I Can Access The Data?
I hate XML it drives me nuts I have some results from the shopping.com API which is lovley but I can't do anything with them. Is there an easy way I can access the data? Code:

View Replies !
Grab Email Addresses From MySQL And Send An Email....
I am making a simple mail form that will SELECT email address from a MySQL table based on the userid of the person sending the email.

if (isset($_POST['submit'])) {
require('../database.php');
$result = mysql_query("SELECT * FROM emailList WHERE merchantId = '".$_SESSION['id']."'") or die(mysql_error());

What would be the most efficient way of storing the email addresses from MySQL (may be 1 or may be 100) and then sending them in BCC to all the people gathered from the MySQL table?

View Replies !
Access A Website, Fetch The Data, And Then Logout
I need to access a website, Fetch the data, and then logout. Please
tell me where I am wrong. I dont think its logging out properly.

<?

include "Snoopy.class.php";
$snoopy = new Snoopy;

//Logging in
$submit_url =
'http://www.sortingcodes.co.uk/FormsLogin.asp?action=login&URL=Default%2Easp'
$submit_vars["Username"] = "Username"; //my username
$submit_vars["Password"] = "Password"; //my password
$submit_vars["Submit"] = "Go";
$snoopy->submit($submit_url,$submit_vars);

//Requesting for info
$snoopy->setcookies();
$submit_url =
'http://www.sortingcodes.co.uk/Results.asp?type=Sortcode&Page=1&Sortcode=402343'
$snoopy->fetch($submit_url);
echo $snoopy->results;

//loggin out
$snoopy->setcookies();
$snoopy->fetch("http://www.sortingcodes.co.uk/logout.asp");

?>

View Replies !
MS Access Data Stored In Arabic Language
am retriving data from MS Access MDB file ... database ... the probem is the data stored in arabic language, and when i get the result each arabic word appears Code:

View Replies !
Multi-dimensional Arrays - Use Foreach() To Access The Data?
If I have a 2-dimensional array where the top key is year numbers (e.g. "2003"), the second key is month numbers (e.g. "8" to represent August), and the data stored is some cardinal number, how can I use foreach() (or anything else) to access the data?
I want to write one line of HTML for each year, along the lines of:

2003 [ 8(23) ]

assuming that 23 would be the cardinal number stored at $array[2003][8].
I s'pose what I'm trying to do is use the key, which is an array, as a string to print out. Or maybe I'm just confused? PHP Code:

View Replies !
Code To Insert Data Into An Access Database Using Odbc Commands
I developed some code to insert data into an access database using odbc commands, and my code is below. PHP Code:

View Replies !
MySQL Vs MS Access
Thats right, I did say MS Access...

Excuse me for not putting this in its proper MySQL forum, but I have seen some great debates recently transpire regarding technology choices, and I am in desperate need of expert opinions!

My employer was recently bought out by another web development co. that unfortunately (for me) they specialize in ASP development... The funny thing is they don't even utilize MS SQL Server, they use MS Access. At first, I was astounded... Did they know something that I did not... Even Microsoft themselves have put huge warning signs all over their MSDN regarding Access's use over the internet...

I was scared to even suggest this to the managers, for fear that they knew some way of avoiding the fact that Access does not possess the power that MySQL or SQL Server (for that matter -at least) do!

In fact, I was dead wrong... They didn't know a thing! I even got in a debate with the lead Access "developer(?)"... He didn't consider MySQL to be a relational database because it 'did not support cascading modifications or referential integrity'... As well as it does not have a GUI considerable to MS ACCESS... I really just wanted to laugh at him, but I instead argued the usual points regarding portability, cost, as well as its close partnering with all of the available PHP functions for MySQL.which lead to a faster more effecient development process.

I know that this message seems a bit on the immature side, but I am honestly not sure how long this company will survive if they are telling their customers to use Access (we just got contracted to do a large financial provider's website today - the managers are actually considering to advise Access!)...

Anyone that can help me bomb these clowns with success stores (MySQL) or disaster stories (Access), as well as any other info, I would greatly appreciate it.

View Replies !
DB Access To DB MySQL
How is the simply way to transfert a DB Access with PHPMyAdmin to a DB
MySQL? Exporting each table from access in format .csv, I have a little
problem to insert them correctly with PHP my admin.

View Replies !
I Haven't Access To Mysql NG
I haven't access to Mysql NG, so let me ask here.

Query:

select distinct a,b from a left join b on a.id = b.id

table b:
id datefrom dateto
1 2005-01-01 2005-01-15
2 2005-01-02 2005-01-16
1 2005-01-17 2005-01-31

In my case, I'd like to show the last date for any ID.
So the result:
1 2005-01-31
2 2005-01-16
3 -

How to do so ? In my case, I get two rows for ID 1

Must I run 2 queries ? It's really hard to create a query with GroupBy, as
the real query takes 20 fields

View Replies !
Mysql Db To Access Db
im working with access databases... so i tried converting the code but im have a little problem... im probably making a mistake in the functions... does an1 one know where i screwed up? Code:

View Replies !
Access MySQL
I have phpdev working fine for php, but I am trying to set up a database now, and it seems like I remember setting up a password back when I installed it, but I have no idea what that was now. How do I find out what it was, and what the other information is?

View Replies !
Access DB To MYSQL
i need to convert an access db to mysql, how do i tell mysql to read an access file? Also the date table in the access is in a different format then in the mysql?

Acess format: Month/day/year
mysql: year:month:day

so i tried changing the date column through phpmyadmin by typing in "'%c/%e/%Y'"in the values field. However the default still shows as 000-00-00.

View Replies !
Access To Mysql
I have an access database and some of the columns are Yes/No checkboxes (that is, in Access they appear in the "Datasheet View" as checkboxes). When I exported the database to a .csv file, I get 0's for unchecked and 1's for checked boxes. In my Mysql table, I'm using the enumerated data type for the corresponding fields ('y','n'). It appears that what's happening is that when I upload the .csv file to Mysql, I get the first enumerated selection on all fields imported.

View Replies !
Pull Data From Mysql From A Varchar Field With Comma Seperated Data
I'm trying to pull data from mysql from a varchar field with comma seperated data, like: test, test, test, and so on. when I try to display the data i just get "array" in the input field. what i'm wondering is how can I show the data correctly? I'm a little lost here.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved