Update of /cvsroot/phpweather/phpweather/db
In directory usw-pr-cvs1:/tmp/cvs-serv4442
Modified Files:
db_mysql.php
Log Message:
It now throws an error with an explanation of went wrong, if anything
goes wrong - that made sense, didn't it? :-)
Index: db_mysql.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/db/db_mysql.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- db_mysql.php 2001/07/08 21:28:24 1.3
+++ db_mysql.php 2001/07/17 12:07:48 1.4
@@ -111,7 +111,10 @@
* @access public
*/
function query($query) {
- return ($this->result_id = mysql_query($query, $this->link_id));
+ $this->result_id = mysql_query($query, $this->link_id) or
+ $this->error("SQL-statement failed: $query<br>MySQL said " .
+ mysql_error() . ' (' . mysql_errno() . ')');
+ return $this->result_id;
}
_______________________________________________
PHPWeather-checkins mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/phpweather-checkins