Re: MySQL_Fetch_Array
| From: | John Lim | Date: | Sun, 07 Oct 2001 18:31:59 +0000 |
| Subject: | Re: MySQL_Fetch_Array | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-13089@lists.php.net to get a copy of this message | ||
Try doing a
print_r($rec);
and debug from there. Print_r reveals what is really going on inside the
$rec variable.
Bye, John
Petr Kadlec <petr.kadlec@ecomma.cz> wrote in message
news:000001c14f3b$69b021e0$050a0a0a@pkad...
> Im beginer in PHP. Help me please. I have one question.
>
> In database I have record
>
> id name city street
> ------------------------------------------------------------------
> 123 Peter CITY 23 STREET 25
>
> When I use
> $rec = MySQL_Fetch_Array($res)
>
> and
>
> echo "".$rec["city"]." ".$rec["street"]."";
>
> I give only
>
> CITY STREET
>
> why not CITY 23 STREET 25
>
> Thank you
>
> Petr
>
>
>