AcidReignX
Programmer
Okay, this might be a little unusual.... well, actually it's probably highly irregular for all I know, but I'm trying to get this to work a certain way and I'm lost.
I want to read information from a mysql query and return it as an echo, but the problem is that the variables aren't showing up. They show up with the $ sign, which... is not what I had expected.
I have no problem calling the field, and the field contains something like this:
$query = "SELECT foo FROM table WHERE x=1";
$result = mysql_query($query);
$row = mysql_fetch_array($result, MYSQL_BOTH);
// so now $row['foo'] == "<td>$hello</td>";
// I do this:
echo $row['foo'];
// And it returns: "$hello" inside of the table, even though $hello is set to something like "How are you".
... so... I'm lost. How do I get it to return "How are you" like it normally would if I hadn't called it from a database? I've tried a couple formatting techniques but none have worked for me. :/ Slashes don't bother it... htmlchars doesn't seem to change anything.. entities... nothing. I'm stuck.
Help me oh wise php guys...
I want to read information from a mysql query and return it as an echo, but the problem is that the variables aren't showing up. They show up with the $ sign, which... is not what I had expected.
I have no problem calling the field, and the field contains something like this:
$query = "SELECT foo FROM table WHERE x=1";
$result = mysql_query($query);
$row = mysql_fetch_array($result, MYSQL_BOTH);
// so now $row['foo'] == "<td>$hello</td>";
// I do this:
echo $row['foo'];
// And it returns: "$hello" inside of the table, even though $hello is set to something like "How are you".
... so... I'm lost. How do I get it to return "How are you" like it normally would if I hadn't called it from a database? I've tried a couple formatting techniques but none have worked for me. :/ Slashes don't bother it... htmlchars doesn't seem to change anything.. entities... nothing. I'm stuck.
Help me oh wise php guys...