RE: [PHP] Re: PHP/MySql noob falls at first hurdle
| From: | Dan Parry | Date: | Fri, 09 Dec 2005 15:10:41 +0000 |
| Subject: | RE: [PHP] Re: PHP/MySql noob falls at first hurdle | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-227200@lists.php.net to get a copy of this message | ||
[snip]
Hi Paul,
Why you are closing your connection before finishing your work on
the database?
Zareef Ahmed
[/snip]
I think Zareef has spotted the most important problem here
Try removing the mysql_close() and trying it
Dan
-----Original Message-----
From: Paul Jinks [mailto:paul@pauljinks.co.uk]
Sent: 09 December 2005 15:05
To: php-general@lists.php.net
Subject: Re: [PHP] Re: PHP/MySql noob falls at first hurdle
Brice wrote:
>
> Try to check the key of your result row with a print_r or a var_dump
command.
>
> Brice Favre
> http://pelmel.org/
>
Like this?
<?php
while($ouput_row = mysql_fetch_array($result))
print_r($output_row);
?>
Apologies if this is pathetically wrong. Like I said, I'm a total noob.
The above returned no data or errors, by the way.
Thanks
Paul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
__________ NOD32 1.1316 (20051208) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com