undefined variables
I am new to PHP & MySQL and am having a little difficulty. I am using Dreamweaver CS5.5 for website building. I just recently completed a tutorial by David Powers titled "Setting up a PHP developement environment for Dreamweaver. I downloaded and installed the latest version of XAMPP and found that things have changed a little since he made the tutorial making some of the screen shots and directions obsolete, but I managed to make my way through it with success until I got to the end. Everything was working and I successfully made a connection to my database, but when I clicked on "Live View" in dreamweaver I got error messages instead of the expected list of information stored in the database. Those error messages:
Notice: Undefined variable: database_connTest in C:\xampp\htdocs\php_test\comments.php on line 34Notice: Undefined variable: connTest in C:\xampp\htdocs\php_test\comments.php on line 34
Warning: mysql_select_db() expects parameter 2 to be resource, null given in C:\xampp\htdocs\php_test\comments.php on line 34
Notice: Undefined variable: connTest in C:\xampp\htdocs\php_test\comments.php on line 36
Warning: mysql_query() expects parameter 2 to be resource, null given in C:\xampp\htdocs\php_test\comments.php on line 36
Any Idea what is causing this and how to repair it. I desire to continue learning more about building a dinamic website but feel I need to discover and correct my mistakes before I go on. Is it possible that the sample file was created in a PHP or MySQL language that isn't recognized by the newest version of the XAMPP software package?
Thanks so much for your help.
