Jump to content

[SOLVED] Checking record id, weird result


CrustyDOD

Recommended Posts

Hey

 

Don't know maybe i'm just too tired but by running this query for example:

SELECT *
FROM `table`
WHERE id = '1asd'

 

it finds row with ID = 1. What the hell?!? How can it return row if ID = '1' and not '1asd'

 

id  	int(11)  	 	  	No  	 	auto_increment

 

My MySql going crazy or my brains just died? :)

Link to comment
https://forums.phpfreaks.com/topic/46294-solved-checking-record-id-weird-result/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.