Re: Code works alone but not with other code.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---- Ed Curtis <e_curtis@xxxxxxxxxxxxx> wrote: 
> I've got this chunk of code (included) that used to work fine in a 
> script up until a couple of weeks ago. Nothing has changed in the php 
> page at all, it just quit working. If I take this chunk of code and 
> place it alone in a php script it works just fine, but only by itself. I 
> don't understand what's going on and don't see anything that would make 
> the script seem like it's just skipping this chunk of code, without 
> errors, when I run it. I'm using PHP 4.4.4-8 mand MySQL 5.0.32 on Debian 
> Etch.
> 
> The code does use nested MySQL queries, it worked before but I thought 
> maybe something changed in PHP or MySQL recently in updates that might 
> have broken it, but there is another chunk of code in the script that 
> uses nested queries as well that works fine just as it had been.
> 
> I also have another script that has recently broke and seems to skip a 
> section of code as well without errors. There are no real similarities 
> between the two that I can see.
> 
> Thanks,
> 
> Ed
<!-- Snip -->

Doesn't work seems plenty bland, have you tried doing the following:
1.  Putting in die statements
2.  Verified the tables exist and have data in MySQL
3.  Checked the PHP error log
4.  Checked the MySQL error log

Just guessing I'd say your data was empty, but without more information, it's a pretty big shot in the dark.

Wolf

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux