Re: [PHP-DB] db connect problems.

2001-11-29 Thread Ian
Cheers Roel, I already downloaded the code from Wrox, thats what I was trying to use. Must be something else I am missing or doing wrong. Thanks anyway. "Roel Mulder" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > At 11:31 29-11-2001 +, you wrote: > >Th

Re: [PHP-DB] db connect problems.

2001-11-29 Thread Roel Mulder
At 11:31 29-11-2001 +, you wrote: >Thanks for the reply's, > >I am still not to clear as what is wrong with my origianl syntax. There is possibly nothing wrong as long as it works :) and already it is clear that debugging isn't too straightforward >I could use these different ideas, but I a

Re: [PHP-DB] db connect problems.

2001-11-29 Thread Ian
der <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, November 28, 2001 11:15 PM > Subject: Re: [PHP-DB] db connect problems. > > > > Or what about: > > > > common_db.inc with just the following: > > (which you would for security r

Re: [PHP-DB] db connect problems.

2001-11-28 Thread koelwebdesign
hat's not lost but left behind." - Beth Orton - Original Message - From: Roel Mulder <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 28, 2001 11:15 PM Subject: Re: [PHP-DB] db connect problems. > Or what about: > > common_db.inc with ju

Re: [PHP-DB] db connect problems.

2001-11-28 Thread Roel Mulder
Or what about: common_db.inc with just the following: (which you would for security reasons put in a directory outside the webroot, and rename the file to .common_db.inc (with a . in front of it)) show_more_db.php with Couldn't connect to specified server"); mysql_select_db($default_dbname)

Re: [PHP-DB] db connect problems.

2001-11-28 Thread koelwebdesign
well, I didn't debug this massive script, but maybe you just want to connect to a mysql database? then this is the short way: $user = "your_username_for_the_database"; $pass = "your_password_for_the_database"; $con = mysql_connect("your_host", $user, $pass); if(!$con) { print "no connection