You are here: Re: mysql_connect() losing connections from cmd line « PHP Programming Language « IT news, forums, messages
Re: mysql_connect() losing connections from cmd line

Posted by Jim Michaels on 10/17/92 11:43

found the source of the problem in my header file.
Gotta stop posting like this.
Still, I think it's odd that PHP was able to take out the MySQL server once.

"Jim Michaels" <NOSPAMFORjmichae3@yahoo.com> wrote in message
news:TsydnevuArNs3rvZnZ2dnUVZ_v6dnZ2d@comcast.com...
>I am running windows XP and PHP 5.1.2 with the MySQL extension enabled in
>php.ini.
> I am using mysql_connect() without any fancy options to connect to MySQL
> and do some stuff without using mysql_close() at the end, and debugging
> several files in sequence.
>
>
>
> I eventually run into
> C:\prj\quiz\withusers>php taaddtt2grp.php
> PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link
> resourc
> e in C:\prj\quiz\withusers\header.php on line 28
> PHP Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL
> result
> resource in C:\prj\quiz\withusers\header.php on line 29
> PHP Warning: mysql_free_result(): supplied argument is not a valid MySQL
> result
> resource in C:\prj\quiz\withusers\header.php on line 30
>
>
> in all sorts of programs. Once I get this, I am not able to run a PHP
> that uses those include files again. I suspect there's some sort of
> cacheing going on here. this is driving me up the wall. One time, it
> took my database down during a simple DROP TABLE operation. The database
> service couldn't reconnect when I restarted it. shutting down &
> restarting the database doesn't help.
>
> any suggestions on how to proceed?
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация