Ok, im baffeled!
For example:
$count = 0;
while ($row = mysql_fetch_array($result))
{
$user[$count] = $row["User"];
echo($user[$count]);
echo("<BR>");
$count ++;
}
This prints out the user id 1111 <BR> 1112 <BR> 1113 which is as expected and what i want!
for($countB = 0; $countB < $sizeOfAnalysedClosed; $countB ++)
{
echo("$user[$countB]<BR>");
echo $user[$countB];
$subject = $user[$countB];
echo("<BR>SELECT * FROM $tableName WHERE User = '$subject' ORDER BY QNo");;
echo("<BR>");
...
This prints out 1111 the first time through the loop and the 1 <BR> 1
So why isnt the string complete??? Why does it get shortened????