a weird error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

volka wrote:This function does not return anything.
Therefore $cnx = Connect_to_db(...) set $cnx tu null.

see http://de2.php.net/return and http://de2.php.net/language.variables.scope
User avatar
Obadiah
Forum Regular
Posts: 580
Joined: Mon Jul 31, 2006 9:13 am
Location: Ashland, KY
Contact:

Post by Obadiah »

thanx guys....turns out with the last error i just simply needed to say return($cxn) the log-in works now.....right now im in the process of debuggin the registration part....go figure it all can be perfect...ahh well ill let you guys know how it goes...thanks alot to all you guys for helpin me out and not just saying, "ahh screw it" i know i felt like it once or twice in the process...if i knew you, all id buy you all a beer....just one though...lol...beer can get expensive after the first round and thats just for me :wink:
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

To reiterate, both volka and I posted that solution.
Post Reply