In my PHP script I am trying to select thirty different cells and eventually assign the values to variables. However, in this code, $result, when printed, comes out to 'Resource Id #2' and on up until 'Resource Id #30.' Now that I have the result of the query, how do I turn it into a string? Thanks.
for ($wrx = 1; $wrx <= 30; $wrx++) {
$qvar = "q" . $wrx;
$query = "SELECT $qvar FROM text_data WHERE username='$uid' LIMIT 0,30;";
$result = mysql_query($query, $connection);
echo "$result"; }
Thanks.
for ($wrx = 1; $wrx <= 30; $wrx++) {
$qvar = "q" . $wrx;
$query = "SELECT $qvar FROM text_data WHERE username='$uid' LIMIT 0,30;";
$result = mysql_query($query, $connection);
echo "$result"; }
Thanks.