01-29-2008, 06:33 PM
|
#23 (permalink)
|
|
The Frequenter
Join Date: Apr 2005
Location: South UK
Posts: 483
Thanks: 51
|
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: ' . $query, 1008);
}
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
|
|
|