change:
include "mysql.php";
to
require "mysql.php";
include() and require() are exactly the same except for one detail, how they handle errors. if you use require() to include a file and the file cannot be found, it returns a fetal error and stops the script. if you use include() and the included file cannot be found, php just produces a notice, but does not stop execution of the script.. the default error reporting seting for php is to only show serious errrors like parse errors and warnings, not notices.
so, after you change include() to require() you will now get file not found error. this is because you have not pointed to the correct path of your mysql.php file.
CyberSpatium----------------------WAMP English Forum Admin
Need help? Check out my
WAMP User Manual/Guide here!
Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in geek speak, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.
Web Development for Newbie's Blog