Re: [PHP] Trouble with mysql_pconnect unable to connect to database?

2002-03-24 Thread Jim Hankins
No, the @ was in the right place (if memory serves me the book said this suppresses the error output.) The problem was my sock file was not in the default location so I had to specify it. If you check the thread the answer is there on how to find where your sock is located. Best Regards, Jim

Re: [PHP] Trouble with mysql_pconnect unable to connect to database?

2002-03-23 Thread Rasmus Lerdorf
Figure out where your mysql.sock file is and provide the path right in your mysql_connect() call. mysqladmin version tells you the path. -Rasmus On Sat, 23 Mar 2002, Jim Hankins wrote: I'm doing a simple database connection using the follow syntax: html head titleBook-O-Rama Search

Re: [PHP] Trouble with mysql_pconnect unable to connect to database?

2002-03-23 Thread Jim Hankins
Can you give me a syntax example. I've found my sock file but seem to be having trouble getting it right on the mysql_pconnect line, my sock is /var/lib/mysql/mysql.sock Thanks in advance! So close but yet so far. :) My first MySql project. Rasmus Lerdorf [EMAIL PROTECTED] wrote in message

Re: [PHP] Trouble with mysql_pconnect unable to connect to database?

2002-03-23 Thread Jim Hankins
never mind got it localhost:/pathto/mysql.sock duh? :) Thanks a million, I'm up and running. - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Jim Hankins [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, March 23, 2002 10:50 PM Subject: Re: [PHP] Trouble with

Re: [PHP] Trouble with mysql_pconnect unable to connect to database?

2002-03-23 Thread Gerard Samuel
Is that supposed to be - $db = mysql_pconnect(localhost, bookorama, bookorama123); Jim Hankins wrote: I'm doing a simple database connection using the follow syntax: html head titleBook-O-Rama Search Results/title /head body h1Book-O-Rama Search Results/h1 ? if (!$searchtype ||