Re: [PHP] mysql_connect() error

2005-09-03 Thread Cristea Adrian
Are you sure that is the 5-th line of your script? please give us
first 1-10 lines (remove confidential data) for debuging...

On 9/3/05, php general help  wrote:
> Hi
> 
> guys hope you can all help me here. im in the middle of making a script ( im
> still quite new), anyway im getting this error Parse error: syntax error,
> unexpected T_STRING in c:\wamp\www\cms\header.inc on line 5 and on line 5 is
> mysql_connect($dbhost, $dbusername, $dbpassword) , i know its the
> mysql_connect() function thats giving me the error though cant seem to get
> it sorted. below is the versions im using
> 
> Apache version : Apache/1.3.33 (Win32)
> PHP version : 5.0.4
> MySQL version : 4.1.10a-nt - extension : mysqli
> all the above come in a bundle package called ( wampserver )
> have also posted on wampservers forums for help
> im using windows xp home.
> 
> Hope you guys can help me.
> 
> Thanks
> Steve
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

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



[PHP] mysql_connect() error

2005-09-03 Thread php general help
Hi

guys hope you can all help me here. im in the middle of making a script ( im
still quite new), anyway im getting this error Parse error: syntax error,
unexpected T_STRING in c:\wamp\www\cms\header.inc on line 5 and on line 5 is
mysql_connect($dbhost, $dbusername, $dbpassword) , i know its the
mysql_connect() function thats giving me the error though cant seem to get
it sorted. below is the versions im using

Apache version : Apache/1.3.33 (Win32)
PHP version : 5.0.4
MySQL version : 4.1.10a-nt - extension : mysqli
all the above come in a bundle package called ( wampserver )
have also posted on wampservers forums for help
im using windows xp home.

Hope you guys can help me.

Thanks
Steve

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



[PHP] mysql_connect() error

2005-09-03 Thread php general help
Hi

guys hope you can all help me here. im in the middle of making a script ( im 
still quite new), anyway im getting this error Parse error: syntax error, 
unexpected T_STRING in c:\wamp\www\cms\header.inc on line 5 and on line 5 is 
mysql_connect($dbhost, $dbusername, $dbpassword) , i know its the 
mysql_connect() function thats giving me the error though cant seem to get 
it sorted. below is the versions im using

Apache version : Apache/1.3.33 (Win32)
PHP version : 5.0.4
MySQL version : 4.1.10a-nt - extension : mysqli
all the above come in a bundle package called ( wampserver )
have also posted on wampservers forums for help
im using windows xp home.

Hope you guys can help me.

Thanks
Steve 

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



RE: [PHP] mysql_connect error

2004-03-22 Thread php-general
T,

You also need to load the php_mysql rpm (Assuming you loaded via rpm)

Till We Meet Again...

Clifford W. Hansen
Operations Support Developer
Aspivia (Pty) Ltd.

+27 (0) 11 259-1150 (Switchboard)
+27 (0) 11 259-1019 (Fax)
+27 (0) 83 761-0240 (Mobile)
[EMAIL PROTECTED] (EMail)
http://chansen.aspivia.com (Web)

Registered Linux user number 343424 on http://counter.li.org/

"We have seen strange things today!" Luke 5:26

This message contains information intended for the perusal, and/or use (if
so stated), of the stated addressee(s) only. The information is confidential
and privileged. If you are not an intended recipient, do not peruse, use,
disseminate, distribute, copy or in any manner rely upon the information
contained in this message (directly or indirectly). The sender and/or the
entity represented by the sender shall not be held accountable in the event
that this prohibition is disregarded.

If you receive this message in error, notify the sender immediately by
e-mail, fax or telephone and return and/or destroy the original message.

The views or representations contained in this message, whether express or
implied, are those of the sender only, unless that sender expressly states
them to be the views or representations of an entity or person, who shall be
named by the sender and who the sender shall state to represent. No
liability shall otherwise attach to any other entity or person.

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



[PHP] mysql_connect error

2004-03-22 Thread T UmaShankari

Hello,

 Here i am facing one problem. i have installed the following in my pc in 
linux platform. i am getting this error when try to execute file. Can any 
one tell me why this error due to ?


Version :
mysql-3.32.41-1
php-4.2.2-17
apache httpd-2.0.40-21

Error :
Call to undefined function mysql_connect() on line no 6.

Regards,
Uma

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



Re: [PHP] mysql_connect error

2003-08-25 Thread murugesan
This is working for me.

---
  define('db_host','localhost');
  define('db_name','mydb') ;
  define('db_user','use1') ;
  define('db_pass','pwd1') ;
  $h = @mysql_pconnect(db_host,db_user,db_pass);
  if($h)
  mysql_select_db (db_name) or die ("could not select db");;
---
-murugesan

- Original Message -
From: "Mjec" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 25, 2003 7:53 AM
Subject: Re: [PHP] mysql_connect error


on 25/08/2003 12:11 PM, John W. Holmes at [EMAIL PROTECTED] wrote:

> Mjec wrote:
>
>> Hi,
>>
>> again this line is causing problems:
>>
>> $h =
>>
mysql_connect('localhost',constant("mysql_user"),constant("mysql_password"))
>> ;
>>
>> Aparantly a parse error.  Idaes?
>
> Is there a reason you're using constant()??
>
> Try: $h = mysql_connect('localhost', mysql_user, mysql_password);
>
> One thing to note about parse errors. If PHP says you have a parse error
> on line 8 (for example), that means there is an error somewhere before
> OR on line 8. The line PHP gives is just the point where it realized
> something was wrong, but the cause could be on a previous line.

Error line 43 (or 42 if 43 commented out and 42 uncommented)

 38: define("mysql_password", "did you think");
 39: define("mysql_user", 'i would say this');
 40:
 41: // Initialize MySQL database
 42: // $h =
mysql_connect('localhost',constant("mysql_user"),constant("mysql_password"))
;
 43: $h = mysql_connect('localhost',mysql_user,mysql_password);
 44: mysql_select_db('mjec_mjecnet', $h);

ideas?

--mjec

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

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



Re: [PHP] mysql_connect error

2003-08-25 Thread Mjec
on 25/08/2003 12:11 PM, John W. Holmes at [EMAIL PROTECTED] wrote:

> Mjec wrote:
> 
>> Hi,
>> 
>> again this line is causing problems:
>> 
>> $h = 
>> mysql_connect('localhost',constant("mysql_user"),constant("mysql_password"))
>> ;
>> 
>> Aparantly a parse error.  Idaes?
> 
> Is there a reason you're using constant()??
> 
> Try: $h = mysql_connect('localhost', mysql_user, mysql_password);
> 
> One thing to note about parse errors. If PHP says you have a parse error
> on line 8 (for example), that means there is an error somewhere before
> OR on line 8. The line PHP gives is just the point where it realized
> something was wrong, but the cause could be on a previous line.

Error line 43 (or 42 if 43 commented out and 42 uncommented)

 38: define("mysql_password", "did you think");
 39: define("mysql_user", 'i would say this');
 40: 
 41: // Initialize MySQL database
 42: //$h = 
mysql_connect('localhost',constant("mysql_user"),constant("mysql_password"))
;
 43: $h = mysql_connect('localhost',mysql_user,mysql_password);
 44: mysql_select_db('mjec_mjecnet', $h);

ideas?

--mjec

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



Re: [PHP] mysql_connect error

2003-08-25 Thread John W. Holmes
Mjec wrote:

Hi,

again this line is causing problems:

$h = 
mysql_connect('localhost',constant("mysql_user"),constant("mysql_password"))
;

Aparantly a parse error.  Idaes?
Is there a reason you're using constant()??

Try: $h = mysql_connect('localhost', mysql_user, mysql_password);

One thing to note about parse errors. If PHP says you have a parse error 
on line 8 (for example), that means there is an error somewhere before 
OR on line 8. The line PHP gives is just the point where it realized 
something was wrong, but the cause could be on a previous line.

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

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


[PHP] mysql_connect error

2003-08-25 Thread Mjec
Hi,

again this line is causing problems:

$h = 
mysql_connect('localhost',constant("mysql_user"),constant("mysql_password"))
;

Aparantly a parse error.  Idaes?

Thanks,

Mjec

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



Re: [PHP] mysql_connect error

2003-01-20 Thread Chris Shiflett
--- Tom Ray <[EMAIL PROTECTED]> wrote:
> Can someone please tell me why I'm getting this error:
> 
> *Fatal error*: Call to undefined function:
> mysql_connect() in 
> */webs/tom/www.bohabcentral.com/www/bohabs/auth.php* on
> line *4
> 
> *mysql_connect was working a week or so ago, and I
> haven't made any changes to the servers configuration.

That seems unlikely, but I'll take your word for it. Can
you do a phpinfo() and let us know what the configure line
is?

Also, does function_exists("mysql_connect") return false?

Chris

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




[PHP] mysql_connect error

2003-01-20 Thread Tom Ray
Can someone please tell me why I'm getting this error:

*Fatal error*: Call to undefined function: mysql_connect() in 
*/webs/tom/www.bohabcentral.com/www/bohabs/auth.php* on line *4


*mysql_connect was working a week or so ago, and I haven't made any 
changes to the servers configuration.

If someone could point me in the right direction I would love to get 
this function running again.

TIA


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



[PHP] mysql_connect() error

2001-04-28 Thread Siim Einfeldt

I get this kind of error when trying to connect to mysql - 
http://myhost/~myname/baas.php

What migth be the problem? The error exists on all accounts.

PS: Drop a line to my private email as well