Re: [PHP] Re: a weired query issue

2009-01-08 Thread Chris
Nathan Rixham wrote: viraj wrote: i have this query.. $sql = "SELECT `id` FROM `modules_permissions` WHERE `id` = '" . $permissionId . "';"; when i pass the value 31 to permissionid, it returns me the 31st row of the table. and it's fine. but when i pass '31asasa' as the permissionid it return

[PHP] Re: a weired query issue

2009-01-08 Thread Nathan Rixham
viraj wrote: i have this query.. $sql = "SELECT `id` FROM `modules_permissions` WHERE `id` = '" . $permissionId . "';"; when i pass the value 31 to permissionid, it returns me the 31st row of the table. and it's fine. but when i pass '31asasa' as the permissionid it returns me the same row! how