Re: [PHP] double values in array

2001-09-13 Thread Tom Beidler
MYSQL_ASSOC did the trick. Thanks From: Andrew Perevodchik [EMAIL PROTECTED] Reply-To: Andrew Perevodchik [EMAIL PROTECTED] Date: Thu, 13 Sep 2001 08:10:52 +0300 To: Tom Beidler [EMAIL PROTECTED] Cc: php list [EMAIL PROTECTED] Subject: Re: [PHP] double values in array Hello! You wrote

[PHP] double values in array

2001-09-12 Thread Tom Beidler
I have a form that I would like to send an email once it's validated. I'm using the following code that builds the body of the email. $y = mysql_fetch_array ($getrec_result); while (list($key,$value) = each($y)) { $body .= $key: $value\n; } My body looks like this 0: 3 id: 3 1: 2001-09-12

Re: [PHP] double values in array

2001-09-12 Thread Andrew Perevodchik
Hello! You wrote: TB What am I doing wrong? You should use this line: $y = mysql_fetch_array ($getrec_result, MYSQL_ASSOC); -- Andrew Perevodchik [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: