|
Hi,
I use the following code to fetch the details from a table storage.
$select = $tableStorageClient->select()->from( $tablename )
->where("username eq '".$_POST['uname']."'")
->andWhere("password eq '".$_POST['upass']."'")
->andWhere('PartitionKey eq ?', $PARTITION);
$adminLogin = $tableStorageClient->retrieveEntities(
$tablename,
$select,
'SiteAdministrator' );
When I run the application, it thrown me the following Fatal Error:
Fatal error: Uncaught exception 'Microsoft_WindowsAzure_Exception' with message
'One of the request inputs is not valid.' in E:\workspace\demoapp\ServiceDefinition.csx\roles\WebRole\approot\admin\Microsoft\WindowsAzure\Storage\Table.php:662
Stack trace: #0 E:\workspace\demoapp\ServiceDefinition.csx\roles\WebRole\approot\admin\login.php(16): Microsoft_WindowsAzure_Storage_Table->retrieveEntities('administrator', Object(Microsoft_WindowsAzure_Storage_TableEntityQuery), 'SiteAdministrat...')
#1 {main} thrown in E:\workspace\demoapp\ServiceDefinition.csx\roles\WebRole\approot\admin\Microsoft\WindowsAzure\Storage\Table.php on line
662
Also I try to make $filter by this way:
$select = "PartitionKey eq '".$PARTITION."' and username eq '".$_POST['uname']."' and password eq '".$_POST['upass']."'";
But the same error occurred every time.
Can anyone suggest me about the issue or how to recover it?
Thanks !
|