Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: database connections


Message #1 by "Joel Wickard" <jwickard@l...> on Wed, 27 Jun 2001 12:40:51 -0500
This is a multi-part message in MIME format.

------=_NextPart_000_000C_01C0FF0D.05396880
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

actually, I'm on win2000pro
  ----- Original Message -----
  From: hiten pandya
  To: professional php
  Sent: Tuesday, June 26, 2001 12:44 PM
  Subject: [pro_php] Re: database connections






  hi, hope u fine and in fit health,
  r u on win98, or 95,
  i saw that u sent the message from outlook express,
  and that is 98,
  and windows 98 doesn't support threads,
  this might be the closest possible reason,
  if u have anymore problems,
  dont hesitate to contact me @ h_pandya5@h...
  bye
  have a nice day
  I'd like to do something like this:
  (ur message)

  $db1_id =3D db_connect("db1");

  $db2_id =3D db_connect("db2");
  $query1 =3D "select * from table";
  $query2 =3D "select * from table";
  $results1 =3D mysql_query($query1, $db1_id);
  $results2 =3D mysql_query($query2, $db2_id);
  but when I execute this method of queries, it fails because the 
$results1
  query uses the $db2_id instead of the first link id like I specified 
in the
  mysql_query function call. It's as if it ignores the link_id 
specifications
  I have made, and just used the last one that was opened. Is there 
soemthing
  Ihave to set in the PHP ini?
  many thanks
  -joel --- 
jwickard@l... 
$subst('Email.Unsub')



  Return to Index