Page 1 of 1

variable within a $row variable

Posted: Fri Aug 20, 2010 11:20 am
by mrlayance
Not sure why this does not work?

Code: Select all

while($row = mysql_fetch_array($resultyes))
  {
 
  echo "<tr>";
  echo "<td>" . $row['$software'] . "</td>";
  echo "</tr>";
  }
Everything else calling the $software variable works within the code.

Results are blank?

Re: variable within a $row variable

Posted: Fri Aug 20, 2010 11:45 am
by AbraCadaver
http://us2.php.net/manual/en/language.types.string.php

Read the single and double quotes sections.

Re: variable within a $row variable

Posted: Fri Aug 20, 2010 12:23 pm
by mrlayance
Thanks, darn double quotes.