Re: MySQL and loading infiles

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



on 24/4/03 4:41 am, Gomez, Mark (PIRSA) at gomez.mark@saugov.sa.gov.au
wrote:

> My pages currently connect using:
> $dbh = mysql_connect("host","database","user","password") or die
> mysql_error());
> $sdbh = mysql_select_db("database") or die (mysql_error());

Surely you should be doing:

  $dbh = mysql_connect("host","user","password") or die
mysql_error());
  $sdbh = mysql_select_db("database") or die (mysql_error());

As you connect to the server first and then select the db.


-- 
Mike Karthauser 
Managing Director - Brightstorm Ltd

Email       >> mikek@brightstorm.co.uk
Web         >> http://www.brightstorm.co.uk
Tel         >> 0117 9426653 (office)
               07939 252144 (mobile)

Snailmail   >> Unit 8, 14 King Square,
               Bristol BS2 8JJ


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux