Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDevelopment Articles

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 30th, 2002, 12:04 PM
flim flim is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: germany
Posts: 1 flim User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Good piece of information

Pretty good article - though I knew about most of the features of error handling it was really good to read this article as it took the problems back in my mind and gave an interessting overview. I'm really looking forward to the second part;)
regards,
flim

Reply With Quote
  #2  
Old May 16th, 2002, 01:53 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Irony

In page 3:
http://www.devshed.com/Server_Side/PHP/ErrorHandling/ErrorHandling1/page3.html
There is a typo in the 2nd last text:

<?php
// set error-reporting to only fatal errors
error_reporting(E_ERROR);

// string
$string = "Mary had a little lamb";

// attempt to join() this string
// this will generate an E_WARNING
// because the second argument to join() must be an array join('',
$string);

// since this is a non-fatal error
// this statement should be executed
echo "-- end --";
?>

There should be a line break at the comments where half of the join function gets commented.

Reply With Quote
  #3  
Old January 16th, 2003, 12:23 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
error

Read your article. I get MySQL result resource error when trying to execute "
$query="UPDATE $dbtable SET companyname='$companyname', address='$address', city='$city', state='$state',

zipcode='$zipcode', countrycode='$countrycode', companyphone='$companyphone', contactperson='$contactperson',

contactphone='$contactphone', companyIP='$companyIP', catalogIP='$catalogIP', companyemail='$companyemail',

contactemail='$contactemail', logo='$logo' WHERE recnum='$recnum'";

which appears to be ok symatically.
using error trap causes my form to go
blank.
Can you suggest resolution?
I also notice you make call mysql_query($query, $db) but my ver4 php barfs with
the $db. ???
Thanks
Bruce

Reply With Quote
  #4  
Old April 16th, 2003, 05:14 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
re: error

SQL queries will not work unless all text fields are enclosed in quotes. ie:

$query = "UPDATE $dbtable SET companyname = '$companyname', address = '$address', ..."

Number fields don't need quotes, and inserting NULL doesn't need quotes. In fact if you use quotes NULL won't work properly.

Hope that helped. Dom

Reply With Quote
  #5  
Old April 16th, 2003, 05:16 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Apologies

Ok, it seems that this comments engine rips out single quotes and makes the text a different style instead. Sorry.

Reply With Quote
  #6  
Old May 27th, 2003, 11:36 AM
Ducani
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Error Handling In PHP (part 1)

Error Handling In PHP \(part 1\)

So you've seen those ugly messages PHP pops up whenever there's an error in your code. And perhaps you've wondered if there's a way to turn them off, or capture and handle them at the application layer. Well, there is - and this article has all the details.

Please discuss this article in this thread. You can read the article here .

Reply With Quote
  #7  
Old May 28th, 2003, 09:28 AM
Ducani
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
If you would like to see an article covering a particular topic, please post your request here.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > Error Handling In PHP (part 1)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway