View Single Post
Old 01-29-2008, 06:33 PM   #23 (permalink)
Alan @ CIT
Member of the Month
The Frequenter
Member of the Month Top Contributor 
 
Alan @ CIT's Avatar
 
Join Date: Apr 2005
Location: South UK
Posts: 483
Thanks: 51
Alan @ CIT is on a distinguished road
Default

I actually got around to writing some PHP code today so here is this weeks 5 lines from me

PHP Code:
            $result mysql_query($query$this->link);

            if (
$result === FALSE)
            {
                throw new 
Exception('Query failed: ' mysql_error($this->link), 1007);
            }

            if (
mysql_affected_rows($this->link) == 0)
            {
                throw new 
Exception('No rows deleted by query: ' $query1008);
            } 
I'm knocking up a small email verification script for a friend - will probably release it here if he doesn't mind when it's finished.

Alan
Send a message via MSN to Alan @ CIT
Alan @ CIT is offline  
Reply With Quote