Re: show data on the text input box

From: Date: Fri, 09 May 2014 13:54:23 +0000
Subject: Re: show data on the text input box
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-323252@lists.php.net to get a copy of this message
On 5/9/2014 12:37 AM, iccsi wrote:
echo "ID:".$row{'invid'}." Inv Date:".$row{'invdate'}."Note: ". $row{'Note'}."<br>";
These are wrong. You are processing an array of the results. Arrays are referenced with brackets, not braces. Should read: echo "ID:".$row['invid']." Inv Date:".$row['invdate']."Note: ".$row['Note']."<br>";

« previous php.general (#323252) next »