View Single Post
Old Oct 29th, 2007, 05:15   #1 (permalink)
Monie
Most Reputable Member
 
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,565
Blog Entries: 2
Send a message via Yahoo to Monie
[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()));

Attached Images
File Type: png error.png (3.7 KB, 27 views)
__________________


Last edited by Monie; Oct 29th, 2007 at 06:07.
Monie is offline   Reply With Quote