28, May 2012

Bug in flexibleAccess Contructor - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  Php User Class
Topic: Bug in flexibleAccess Contructor
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: Bug in flexibleAccess Contructor  (Read 836 times)
Bill Cosby is my Father
*
Posts: 4
28 credits
Members referred : 0


« on: Feb 27, 2011, 12:48:33 pm »

It's about this piece of code

Code:
if ( !$this->dbConn )
?  die(mysql_error($this->dbConn));

The if statement will be entered if $this->dbConn equals false. But mysql_error() does not accept a boolean as parameter.
An error like this will be thrown.

Code:
Warning: mysql_error() expects parameter 1 to be resource, boolean given in XXXX on line 85


Destructive
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=11380
Tags : bug mysql_error boolean Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  Php User Class
Topic: Bug in flexibleAccess Contructor
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 03:26:04 am





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 62.814
Total Topics: 11.028
Total Members: 21.451
Tutorials : 58
Resources : 929
Designs : 395
Latest Member: sobbin

139 Guests, 3 Users online :

11 users online today:




Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.