Current location: Hot Scripts Forums » Programming Languages » PHP » Debug Script


Debug Script

Reply
  #1 (permalink)  
Old 09-07-08, 12:13 PM
connor connor is offline
Wannabe Coder
 
Join Date: Apr 2005
Location: Knob Noster, Mo
Posts: 228
Thanks: 1
Thanked 0 Times in 0 Posts
Hazard Debug Script

Im trying to figure out how to make a debug script work any suggestions would help.
PHP Code:

if($debug_mode=="on"){

    
$debug_error=mysql_error();
}else
if(
$debug_mode=="off"){
    
$debug_error="There was a MySQL error. Please try again.";
}
$conf_sql="SELECT * FROM config";
$conf_res=@mysql_query($config_sql) or die("".$debug_error." REF#: c1"); 
The thing is is that I want a ref # at the end weather it shows the error or the "there was an error"
__________________
Connor Strandt
JCS Photography
www.JCStrandt.com
Reply With Quote
  #2 (permalink)  
Old 09-07-08, 09:04 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gallery script good/bad idea? joshg678 PHP 2 12-22-08 08:41 AM
Login Script v1.9 Problem SuavyDoodle JavaScript 8 09-28-06 09:13 PM
Help me with this script !!! phpfreek Job Offers & Assistance 0 04-12-06 05:19 PM
Is there any integrity of script rankings? webmaster@atmanager.com Hot Scripts Forum Questions, Suggestions and Feedback 17 08-06-04 12:12 AM


All times are GMT -5. The time now is 07:55 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.