MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 10th, 2000, 01:39 PM
localads localads is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2000
Posts: 7 localads User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to localads
Hi,

I'm starting out on a complex and exciting PHP/MySql Web Application. In it, I will at various stages of the process, need to input the same bit of data entered by a user into 2 different databases, and into more than one table in each database.

a) Is this possible?
b) Is it also possible to search across both databases, and all tables concerned in both tables?

Thanks

Will

Reply With Quote
  #2  
Old January 11th, 2000, 03:12 AM
PAV PAV is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 1999
Location: Netherlands
Posts: 77 PAV User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Hi Will,

a) Is this possible?
b) Is it also possible to search across both databases, and all tables concerned in both tables?

It should be possible if you try:

$mysqllink = mysql_connect("host","user","pass");
$query1 = mysql_db_query("dbasename1","somequery",$mysqllink);
$query2= mysql_db_query("dbasename2","anotherquery",$mysqllink);

Good luck, Peter

[This message has been edited by PAV (edited January 11, 2000).]

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Inserting into Multiple Dbs and Tables - possible?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT