if you are working on you local machine and you are not getting any error thank it is ok but if you are working on the unix server than you should change the database connection. if any doubt contact to me online bye ________________________________ From: Davide Baglieri <davidonzo@xxxxxxxxx> To: php-objects@xxxxxxxxxxxxxxx Sent: Thursday, April 30, 2009 6:43:29 PM Subject: Re: Call to undefined function: mysql_connect() during execution in PHP command line What do you type in the console? On Thu, Apr 30, 2009 at 8:37 AM, sourav <sghosh246@gmail. com> wrote: > > > Hi All, > > Can someone help me out in fixing the issue. > While I am running a php script through browser, it runs smoothly withourt > error and giving desired result. > But when I run the script from unix console, it throws error "Call to > undefined function: mysql_connect( ) .. .." and doesn't give the desired > result. > > Thanking You, > > Regards, > Sourav > > [Non-text portions of this message have been removed] > > [Non-text portions of this message have been removed]