Re: Help with PHP and SQL SELECT Programming Web Development by jpadgett … RECORD AND SEND MAIL. */ // *********** STEP #1 (CUSTOMERROR() FUNCTION) BEGIN ********** function customError($errno, $errstr, $errfile, $errline) { // ECHO USED… // END ERROR FUNCTION } //SET ERROR HANDLER set_error_handler("customError"); // TRIGGER ERRORS WITH CALLS TO NON-EXISTENT VARIABLES --… Re: Help with PHP and SQL SELECT Programming Web Development by jpadgett … RECORD AND SEND MAIL. */ // *********** STEP #1 (CUSTOMERROR() FUNCTION) BEGIN ********** function customError($errno, $errstr, $errfile, $errline) { // ECHO USED… // END ERROR FUNCTION } //SET ERROR HANDLER set_error_handler("customError"); // TRIGGER ERRORS WITH CALLS TO NON-EXISTENT VARIABLES --… Re: Help with PHP and SQL SELECT Programming Web Development by hielo … THEN INSERT RECORD AND SEND MAIL. */ // *********** STEP #1 (CUSTOMERROR() FUNCTION) BEGIN ********** function customError($errno, $errstr, $errfile, $errline) { // ECHO USED FOR …mess2); } } } // END ERROR FUNCTION //SET ERROR HANDLER set_error_handler("customError"); // TRIGGER ERRORS WITH CALLS TO NON-EXISTENT VARIABLES -- FOR… Re: Help with PHP and SQL SELECT Programming Web Development by jpadgett … INSERT RECORD AND SEND MAIL. */ // *********** STEP #1 (CUSTOMERROR() FUNCTION) BEGIN ********** function customError($errno, $errstr, $errfile, $errline) { // ECHO USED FOR… } } } // END ERROR FUNCTION //SET ERROR HANDLER set_error_handler("customError"); // TRIGGER ERRORS WITH CALLS TO NON-EXISTENT VARIABLES -- FOR… Allowing multiple adds to SQL database Programming Web Development by 0weavern …"; } // Form Custom Validate event function Form_CustomValidate(&$CustomError) { // Return error message in CustomError return TRUE; } } ?> [/code] Now I only need… Help with PHP and SQL SELECT Programming Web Development by jpadgett … believe that is where my problem lies. I have a customError script that extracts the last 5 errors from the database… array?please advise me here $errstr below is part of customError function and is what I am checking for*/ if(!in_array… Python Stacks Programming Software Development by dolphinaura If I am creating an exception class, along with a stack [CODE]class CustomError(Exception): def __init__(self): self.contents=[] print "Stack Created"[/CODE] How can I make it so that if [CODE]x=CustomError()[/CODE], the stack contents will be [code] x.historical.contents [/code], not [code] x.contents[/code]? Re: Python Stacks Programming Software Development by ihatehippies … the attribute 'contents' [CODE=python] class container(object): pass class CustomError(Exception): def __init__(self): self.historical = container() self.historical.contents… setting the web.config file Programming Web Development by Sarah Lee … accross some questions [/COLOR] [COLOR=navy]I have set the customerror mode to renote only, and defaultredirect to a asp.net… Error Trying to Use Log In on Web Site Programming Web Development by jobojo …;/compilation> <customErrors mode="Off" defaultRedirect="CustomError.aspx"/> <pages theme="Standard">… Web Config File CustomError Programming Web Development by Sumith Asanka Hi Guys i have this error in my asp.net 4.0 application , i am strugling to find out why it is working perfect on my local iis server, but throws this error on web iis server Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" … Re: Web Config File CustomError Programming Web Development by JorgeM If your web.config file is saved in the root directory and you have customErrors, set to off, you should be seeing the actual error instead of the message above. It has to be in the root directory Re: Web Config File CustomError Programming Web Development by Sumith Asanka Hi JorgeM Here i am sending 2 screen Shots on My Lcal PC Published folder and FileZila on Web server just see whether you can see any problem there ? Re: Web Config File CustomError Programming Web Development by Sumith Asanka Yet I get this error, just got fedup with this error Re: Web Config File CustomError Programming Web Development by JorgeM You are going to have to contact the provider to figure out what's going on, or if they are overriding your web.config file settings. Again, if you have customErrors, set to off, you should be seeing the actual error instead of the message above. Re: Deploying ASP.Net Pages and Database Programming Web Development by amitshrivas …;customErrors mode="Off" />[/QUOTE] if i set CustomError mode="off" then it will give me Parser… Exception and if i set CustomError mode="remoteOnly"|"On" then it will… Re: Web service and application Programming Web Development by kvprajapati …] Your application throws an exception. To get exception trace set customError markup. The error shows that you are not on the… Re: Displaying ASP.net pages in other PC Programming Web Development by JorgeM The page you are seeing is telling you exactly what to do to see the error. If you want to see the error that is being generated, edit your web.config file and update (or add this line if you do not have any customError settings) the customErrors as shown in line #14 Re: Error when I am hosting my ASP.NET sites Programming Web Development by Robert_10 …:\Project to the server via FTP Please also add a customError tag on your web.config so that you can view… Re: Allowing multiple adds to SQL database Programming Web Development by death_oclock That massive amount of code is a huge turnoff for potential help. Can you post the relevant parts? And it would help if you could be more specific with your problem. (Not more wordy, as some people seem to think) Re: Help with PHP and SQL SELECT Programming Web Development by hielo on line 29 of first block and line 39 of second block you have: [iCODE]$result=mysql_[COLOR="Red"]db_[/COLOR]query([COLOR="Red"]errorfile[/COLOR],"$SQL");[/iCODE] a. [iCODE]mysql_db_query()[/iCODE] is deprecated. Use [iCODE]mysql_query()[/iCODE] instead. b. Regarding the first argument to the function did you mean [… Re: Help with PHP and SQL SELECT Programming Web Development by jpadgett [QUOTE] Thanks! I'll try the mysql_query() instead. Obviously , I am out of touch with the new practices in sql. Just so you know, I am still using MySQL 3.12 and not 5.x. I need an update for sure. errorfile is the name of my database, and $errfile is an argument in the error function. And the last, what you are saying is besides my string where … Re: Help with PHP and SQL SELECT Programming Web Development by jpadgett Still not working correctly, I tried your suggestions with no luck. [QUOTE=hielo;1542716]on line 29 of first block and line 39 of second block you have: [iCODE]$result=mysql_[COLOR="Red"]db_[/COLOR]query([COLOR="Red"]errorfile[/COLOR],"$SQL");[/iCODE] a. [iCODE]mysql_db_query()[/iCODE] is deprecated. Use [iCODE]… Re: Help with PHP and SQL SELECT Programming Web Development by baseballfury You've already connected to the database before initiating the 'if' statement so why are you connecting again if number!=0?? Re: Help with PHP and SQL SELECT Programming Web Development by ko ko What error are you receive ? Post the error message. So, we can approach the problem quickly. Re: Help with PHP and SQL SELECT Programming Web Development by jpadgett [QUOTE=Zero13;1542914]What error are you receive ? Post the error message. So, we can approach the problem quickly.[/QUOTE] I'm not getting any error with this code everything is syntactically correct. My problem is that I am not getting my desired results. My logic is wrong somewhere and I think maybe in the way that I store the results into the… Re: Help with PHP and SQL SELECT Programming Web Development by jpadgett [QUOTE=baseballfury;1542913]You've already connected to the database before initiating the 'if' statement so why are you connecting again if number!=0??[/QUOTE] You're right! I will change that I have been moving code around cutting and pasting and overlooked it. Re: Help with PHP and SQL SELECT Programming Web Development by ko ko [QUOTE]while($info = mysql_fetch_array( $data )) { $str[] = $info[0]; $timer[] = $info[1]; }[/QUOTE] Check these array. It must be mysql table field name like '$info["field_1"]', '$info["field_2"]'. Re: Help with PHP and SQL SELECT Programming Web Development by jpadgett I'll try it out. [QUOTE=Zero13;1543646]Check these array. It must be mysql table field name like '$info["field_1"]', '$info["field_2"]'.[/QUOTE] Re: Help with PHP and SQL SELECT Programming Web Development by baseballfury on line 137 is an 'IF' statement. Should this be nested inside the 'else if' on line 113. Cause at the moment it's inserting regardless of what $number equals.