This one time, at band camp, John Meyer [EMAIL PROTECTED] wrote:
I have the following script:
try {
$conn = mysql_connect(localhost,webuser,testme) or die(Could not
connect);
-- snipped for sake of sanity --
I think if you wish to push down this path you may wish to look at PDO.
I have the following script:
try {
$conn = mysql_connect(localhost,webuser,testme) or die(Could not
connect);
mysql_select_db(bookcollection,$conn) or die(Could not select
database);
//first, check to see if there is an author
if ($_POST[neworoldauthor] == new) {
$sql =
do you know what a php exception is and when/where/what generates them?
(if your coming from another language that supports exceptions you may need
to adjust your knowledge - php's exceptions are a little different -
for instance they are not ever generated by the engine itself)
does
, depending on how that big flame-war in
Internals work[s|ed] out...
You need to do your own 'throw' if you want your 'catch' to execute,
almost for sure.
Disclaimer: Ain't never used PHP Exceptions, and don't like 'em, so I
don't really know what I'm talking about.
--
Like Music?
http://l-i
4 matches
Mail list logo