MySQL Forums
Forum List  »  Quality Assurance

PHP/MySQL flaw
Posted by: Dennis Vermaut
Date: April 17, 2009 06:27AM

I have a simple table in my database and one of the colums is called ysnToegewezen (which is a tinyint length 1 value 1).
I fetch the data with a SELECT * query.

If I fetch the rows in PHP (using both mysql_fetch_row, mysql_fetch_array) and I call out the value it says 0, instead of 1.

If I rename the column to blnToegewezen or Toegewezen the data shows up correctly. Any idea what may be the reason for this strange behaviour?

Options: ReplyQuote

Written By
PHP/MySQL flaw
April 17, 2009 06:27AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.