Jump to content
Larry Ullman's Book Forums

Errors With $Dbc Variable


Recommended Posts

We are using the exercises in the eCommerce book for an advanced web development course.

 

We continually have problems with the $dbc variable throwing errors, example:

 

"An error occurred in script '/includes/footer.html' on line 43:
Undefined variable: dbc"

 

(this error is not exclusive to the footer.html file, errors have occurred when loading other files as well)

 

 

This variable is defined early on in the dynamic processes, as a global variable, in the 'mysql.inc' file.

So I don't understand why other files don't recognize this variable.

 

 

Any help troubleshooting is appreciated.

 

 

--RK

 

 

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...