Hi guys,
Very strange i thought i had this working earlier.
I tested this in phpmyadmin and it worked fine.
//Would be sent from flash, used for testing
$theID="(letID=4)+(letID=60)+(letID=61)+(letID=3)+(letID=5)+(letID=6)";
$query = "SELECT * FROM scLets WHERE '$theID'";
$result = mysql_query($query);
if (!$result) {
fail("Couldn't list Lets from database");
}
$letCount = mysql_num_rows($result);
$letCount returns 0
But if i do it this way
$query = "SELECT * FROM scLets WHERE (letID=4)+(letID=60)+(letID=61)+ (letID=3)+(letID=5)+(letID=6)";
$result = mysql_query($query);
if (!$result) {
fail("Couldn't list Lets from database");
}
$letCount = mysql_num_rows($result);
It works fine :S
I need to be able to build the letID list.
Anyone.
Cheers