|
[SOLVED] Database Connection Error Message
I wanted to do an error massage in my ASP-MySQL page more similar to what I've learned in PHP.
Can this be done in ASP page? Thanks..
- PHP: Select all
// 1. Create a database connection $connection = mysql_connect("localhost", "root", "mypassword"); if (!$connection){ die("Databse connection failed: " . mysql_error())); }
__________________
Last edited by Monie; Oct 29th, 2007 at 06:07.
|