Displaying Database Results

From: Date: Fri, 12 Jul 2002 10:09:58 +0000
Subject: Displaying Database Results
Groups: php.general 
Request: Send a blank email to php-general+get-107339@lists.php.net to get a copy of this message
I have a php script that queries a MySQL database and I loop through the results displaying them as follows: echo "<td width='100'><input name='description' type='text' size='45' maxlength='20' value=".StripSlashes(mysql_result($badgedetails, $i, 'descr'))." tabindex='1'/></td>"; The problem is that as per the example above, the text displayed is "Name" but it should be "Name Badge". With all my fields, the text is displayed OK until it hits a space. Why does this occur? **************************************************** This e-mail is intended for the recipient only and may contain confidential information. If you are not the intended recipient then you should reply to the sender and take no further ation based upon the content of the message. Internet e-mails are not necessarily secure and CCM Limited does not accept any responsibility for changes made to this message. Although checks have been made to ensure this message and any attchments are free from viruses the recipient should ensure that this is the case. ****************************************************

« previous php.general (#107339) next »