Re: Help ! MySQL Problem

From: Date: Thu, 08 Mar 2001 08:57:56 +0000
Subject: Re: Help ! MySQL Problem
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-7199@lists.php.net to get a copy of this message
Thanks, but the idea is to transfer data between two tables with same structure. Rosen Marinov ""karakedi"" <eyilmaz76@ultratv.net> wrote in message news:987ggc$mca$1@toye.p.sourceforge.net... > ok you must get your variables like row1, row2 etc from anywherelse then try > this format too insert them at your db > > mysql_connect("localhost","username","password") > or die ("cant connect database"); > > @mysql_select_db("databasename") > or die("cant connect database"); > > mysql_query("INSERT INTO yourtablename(row1, row2, row3) > VALUES ('$row1', '$row2', '$row3') ") > > > ""Rosen"" <rosen_dm@dir.bg> wrote in message > news:987flt$h2r$1@toye.p.sourceforge.net... > > Hi, > > I'm using MySQL database and I try: > > " > > insert into roubr('id','pos','name') values ( select > > id,pos,name from > > requestroubr) > > > > " > > > > and it don't work ! > > > > Please help! > > Rosen Marinov > > > > > > > > -- > > PHP Database Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > > For additional commands, e-mail: php-db-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#7199) next »