MySQL Forums
Forum List  »  PHP

Re: Query/connect works in versions <4.1, not in 4.1
Posted by: Peter Brawley
Date: January 12, 2006 05:10PM

If the calling script is going to use a value of $link set by a called script (db_connect.php), the calling script should declare $link before db_connect.php is called, and the function which sets it in db_connect.php should declare $link GLOBAL. HTH.

PB

Options: ReplyQuote


Subject
Written By
Posted
Re: Query/connect works in versions <4.1, not in 4.1
January 12, 2006 05:10PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.