I have a PHP script I cannot get to work. The webhost I am using has MQ enabled. I am using PHP 4.3 and my problem is retrieving the data from thte database. I can insert the data with no problem. I can also retrieve the data just fine EXCEPT when I want to use it as a value for an input field, such as to update it.
The link_text is Heaven's Mission.
The script (in part) is as follows:
while($row = mysql_fetch_array($result)) {
echo "<p><a href='http://{$row['link_url']}'>{$row['link_text']}</a> - {$row['link_desc']}</p>";
}
This works fine. However, when I do this (again, only the pertinent part):
$row = mysql_fetch_array($result);
<input type='text' name='link_text' size='50' maxlength='50' value='{$row['link_text']}' />
I get Heaven...that's it. It cuts me off at the apostrophe. What is going on here and how can I fix it? ThanX for any help!