MarkB
06-06-2004, 10:50 AM
I'm using a PHP script to call data from a mysql database, and in turn format it using mysql-driven templates. Now, this was working fine before I moved servers, so my guess is my php syntax isn't compatible with the newer server's php/sql or whatever.
However, a near-identical page works without any problems...
Anyway; here's my code. Can someone help me pinpoint what's wrong?
[code removed]
Used when going to http://www.guitar-shopper.com/cat/23/ (I've left error reporting turned on, however those errors shown also show for the script that works, so I don't think that's the problem...)
As far as I can tell, the second SQL request (asking for product info) is just not giving any results, even though using a request through phpmyadmin DOES gives results, and the category name is being parsed (as shown when I echo it).
Any thoughts? This is driving me bonkers, man!
However, a near-identical page works without any problems...
Anyway; here's my code. Can someone help me pinpoint what's wrong?
[code removed]
Used when going to http://www.guitar-shopper.com/cat/23/ (I've left error reporting turned on, however those errors shown also show for the script that works, so I don't think that's the problem...)
As far as I can tell, the second SQL request (asking for product info) is just not giving any results, even though using a request through phpmyadmin DOES gives results, and the category name is being parsed (as shown when I echo it).
Any thoughts? This is driving me bonkers, man!