TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 06-09-2009, 01:32 AM   #1 (permalink)
The Acquainted
 
Randy's Avatar
 
Join Date: May 2007
Location: Your G/F's Closet
Posts: 114
Thanks: 7
Randy is on a distinguished road
Default Custom Error Messages?

Alright so i know the if and else features stuff but im trying to do something that is different, idk if this should go into the mysql area or not so i just put it here.

I am connecting to my database

PHP Code:
mysql_connect($hostname$username$password) or die(mysql_error()); mysql_select_db($databasename); 
however I am curious how would i go about including like a dberror.html file for the error like vbulletin does. I was trying to find out how they do it but i cant find the file where they connect to the database.

Cheers,
Randy
__________________
Real Programmers always confuse Christmas and Halloween because Oct31 == Dec25 - Andrew Rutherford
Send a message via AIM to Randy Send a message via MSN to Randy
Randy is offline  
Reply With Quote
 



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Optional Parameters in Custom functions.. Orc General 6 10-22-2012 09:43 AM
Help on Custom Data Storage TheOnly92 Advanced PHP Programming 35 05-21-2009 10:47 AM
Creating custom php extensions with DevCPP? Nor Advanced PHP Programming 6 01-30-2008 04:49 PM
Custom BBCode / WYSIWYG Gareth Absolute Beginners 8 01-08-2008 09:28 PM
Custom Icons Are Back mike.fro News and Announcements 0 02-25-2007 06:43 PM


All times are GMT. The time now is 08:27 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design