NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP Mysql Function Help

Joseph Crawford codebowl at gmail.com
Thu Mar 31 15:20:47 EST 2005


Can anyone here tell me why i am getting these results.

	public function Query( $sql = "" ) {
		$this->_result = mysql_query( $sql, $this->_link );
		
		if( $this->_result == false ) throw new MySqlEx( 'MySQL Error:
'.mysql_error() );
		return $this->_result;
	}

if i pass that a query trying to query a table that does not exist
then the exception is actually thrown but without an error so it
seems.  If i do or die on the mysql query function it dies with the
error message but isnt passing it to my exception constructor.

-- 
Joseph Crawford Jr.
Codebowl Solutions
codebowl at gmail.com



More information about the talk mailing list