473,790 Members | 2,734 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

** ONLINE DATA INSERT --> MYSQL front & PHP script **

Atz
Hi to all !

Im using MySql front and PHP 5 for some web shop.
I didn't try it so far but i guess that the online data insertation ( accept
costs and time ) should be the same process like for local connection.

Problem:
I have to create online ( on remote server ) some 6 tables and some 20
fields with MySql front.
Ok. This shouldn't be great problem ( i hope :-)).
The bigger problem is that i need to insert cca. 450 products ( into
differnt tables (products, pro_groups ... ) ) and i dont know how to make
this online.

For now ( 20 products ) i made all this thru localhost but now i have to
insert much more data and all this online...
The data is sorted thru groups ( 8 major groups ) so every product is part
of some group.

How can i insert data, online and how to pass so much products from
localhost to remote server ( maybe by reading some .txt file ? ).....

Thanx in advance.
Jul 17 '05 #1
2 2851
Atz wrote:
Hi to all !

Im using MySql front and PHP 5 for some web shop.
I didn't try it so far but i guess that the online data insertation ( accept
costs and time ) should be the same process like for local connection.

Problem:
I have to create online ( on remote server ) some 6 tables and some 20
fields with MySql front.
Ok. This shouldn't be great problem ( i hope :-)).
The bigger problem is that i need to insert cca. 450 products ( into
differnt tables (products, pro_groups ... ) ) and i dont know how to make
this online.

For now ( 20 products ) i made all this thru localhost but now i have to
insert much more data and all this online...
The data is sorted thru groups ( 8 major groups ) so every product is part
of some group.

How can i insert data, online and how to pass so much products from
localhost to remote server ( maybe by reading some .txt file ? ).....

Thanx in advance.


create a comma-delimited file with ALL of the information and then use the mysql
LOAD file. This will take just a couple of minutes vs. trying to use a web
page. When dealing with large amounts of data use the appropriate tool...

in your connection simply change the HOST to point to either the IP address or
host name of the remote server:

# -- CONFIGURE THESE VARIABLES --
$USR = 'someuser';
$PWD = 'somepass';
$DB = 'somedb';
# $HOST= 'localhost';
$HOST = '<someipaddress >';
$link=mysql_con nect($HOST,$USR ,$PWD,$DB);
.........
?>

You may have firewall issues to deal with if it is not on your local LAN and
make sure the user has access from the host you are originating or '%'

update user set host = '%' where user = 'your username';
or
update user set host = '<originating IP address>' where user = 'your username';

--
Michael Austin.
Donations welcomed. Http://www.firstdbasource.com/donations.html
:)
Jul 17 '05 #2
Atz
> create a comma-delimited file with ALL of the information and then use the
mysql
LOAD file. This will take just a couple of minutes vs. trying to use a web page. When dealing with large amounts of data use the appropriate tool...

in your connection simply change the HOST to point to either the IP address or host name of the remote server:

# -- CONFIGURE THESE VARIABLES --
$USR = 'someuser';
$PWD = 'somepass';
$DB = 'somedb';
# $HOST= 'localhost';
$HOST = '<someipaddress >';
$link=mysql_con nect($HOST,$USR ,$PWD,$DB);
........
?> You may have firewall issues to deal with if it is not on your local LAN and make sure the user has access from the host you are originating or '%'
update user set host = '%' where user = 'your username';
or update user set host = '<originating IP address>' where user = 'your

username';
------------------------------------

Thanx Michael for this answer but i don't get it what do u meen under ALL.

Table Product_Categor y is related with table Products

E.g. fields for products TABLE:
ID (Auto-Pk), Code, Name, ShortName, Description, LongDescription , Prize,
Date.

***
Product_Groups TABLE
product_id, category_id

-------------------------------------------------------------
So basicly you suggest something like this:

1, 1001, radio, ra, Small radio, Small radio for cars and other places, 100,
12.09.2004 ;
2, 1002, radioo, ra2, Small radio, Small radio for cars and other places,
110, 12.09.2004 ;
3, 1003, cradio, ra3, Small radio, Small radio for cars and other places,
110, 12.09.2004 ;

Products_Groups
1 , 1 ;
2 , 1 ;
3, 1 ;
------------------------------------------------------------
Like i write before, tables products and products_groups are connected

If i enter all the data at once into one table ( products ), can i enter
then all data in the products_groups table ( becuse of relations ) or must i
make insert on the way that
i make insertation of first product ( products table ) and then his categori
and id ( in the products_group table ) and so on....

I ask this becuse of the sorting in the txt file.
Thanx



Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1308
by: dan | last post by:
I'm trying to connect to a remote database with mysql-front over port forwarded SSH. i have local-host(mycomputer) port 3306 forwarded to local-host(remote) port 3306. I am able to connect but I get Lost connection error? "2013 - Lost connection to MySQL server during query" i was able to connect a few days before but not now? i am wondering whether i should be looking for changes on the server end or my end?
0
2087
by: David List | last post by:
I am wondering what I miss to be able to handle binary data from the mysql client. I have ensured that the user has file_priv set to 'Y' and that max_allowed_packet is larger that the binary lumps handled. Here is my version: Ver 4.1.5-gamma-log for pc-linux on i686 (Source distribution) Right now I'm trying this to insert binary data: mysql> update table set col=load_file("/path/file") where id=1;
0
1702
by: tamdino | last post by:
Please accept my apologies if I am posting this in the wrong place. I am trying to get started using MySQL-Front and I am totally lost. Does anyone know where there is a tutorial for getting started with this interface? Thanks, Tammy
6
3985
by: Piotr | last post by:
Hi, I have following problem: I use a form in excel to send data into mysql server, everything is ok unless I have to deal with decimals or data fields, this simple are not recognized. For example In excel in mySQL 45,45 -> 45 2005-01-01 -> 0000-00-00
1
1338
by: Brian Bendtsen | last post by:
Hi I have a strange problem with a mysql database and ASP. I try to retrieve a value from a table I have just created with a very simple sql statement. Ex. SELECT myValue FROM myTable WHERE userID = 'myName' If I type the query in mysql-front it works fine but if I execute it
2
4509
by: xkp | last post by:
Hi all, i used to use mysql front with my old mysql 3.x version. now i have upgraded to mysql 5.0 and i have just discovered mysql front is not available anymore. I really liked it cause it allowed me to edit easily all my database. Are there any valid alternative? I have tried mysql administrator but it seems to me not so easy to use as the old mysql front. regards
3
1382
by: rollo gerfollo | last post by:
Hi, I have been using MySql-Front Gmbh right up until Monday 7-14-2007, when after downloading a bunch of stuff and keeping dozens of files and windows open for a couple of days, I try to start MySql-Front Gmbh to check a data property, and it won't open up into a window, but failing at that, sits down on the TaskBar and can't get up. Is that an Operating System goof up, as I suspect, or something gone wrong with MySql-Front Gmbh (hereafter...
3
745
by: Waruna | last post by:
Is there a way to block insert into mysql(5.0) using c api of mysql db.. i.e. say there is a table with 2 columns, one contains char other int then i want to insert 500 records at once,, as i explained below. here i declare 2 arrays of char and int to store the values i want,
1
6851
by: polycom | last post by:
Hi, I am coding a mysql health check script. The logic is to execute the commands (only once)show status,show slave status,show variables and fetch the variable name and value in a hash refer or any other fetch machanism and dynamically use the values to do calculation like the following threhold values($uptime > 10800) && (Handler_read_rnd_next > 4000) && ((100-(((Handler_read_rnd_next + Handler_read_rnd) / (##Handler_read_rnd_next +...
0
9666
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10200
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10145
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9021
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7530
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5422
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4094
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3707
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.