Posts Tagged ‘error’

CakePHP: catching errors in Model->query()

In my recent CakePHP application I use some custom SQL queries that I fire at the database using the $model->query($sql) syntax. Works great, until you have an error in your $sql. I tried the obvious error handling with try … catch: try {   $this->Model->query(’INSERT INTO model WHERE id=invalid’); } catch (exception $ex) {   [...]

More »

Method error 12030 when using CascadingDropDown

I followed the example about using CascadingDropDowns linked to a databse as described on http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Walkthrough/CCDWithDB.aspx Unfortunatly, the code contains a little bug, resulting a Method error 12030 or Method error 12031 being displayed in the dropdownlist, instead of the expected data. Because the webservice is being called from (java)script, using ASP.NET AJAX, the enclosing class [...]

More »