Re: Adding a log file
| From: | Bogdan Stancescu | Date: | Wed, 05 Nov 2003 16:00:24 +0000 |
| Subject: | Re: Adding a log file | ||
| References: | 1 | Groups: | php.db php.general |
| Request: | Send a blank email to php-general+get-168578@lists.php.net to get a copy of this message | ||
$Addcart() -- is Addcart() a function (in which case you should remove the dollar sign) or are you specifically trying to do some magic there by running a function whose name is stored in that variable?
Bogdan
Robert Sossomon wrote:
I am seeing some errors with a program I wrote and I need to write everything to a log file that the program is doing. The following syntax I KNOW is wrong, but not sure they are important to put here correctly yet. //script addtocart $Addcart (info1, info2) Mysqlquey($addcart) I am seeing random items NOT being added to my shopping cart. The reason, I have no clue. I can pull another catgory of items and the first 20 will do fine, I go back to the first category I have and the script seems to work correctly but the data is not written to the shopping cart. Problem with the shopping cart??? I wouldn't think so. Problem with the add page, I don't see how. So where is the error coming from? No clue, which is why I want to log everything. I use 3 different add pages so that each form uses a different way to add. This works for me, and seems to work rather well. But I need to log everything on the 3 forms to see where the errors are coming from. TIA! Robert ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To rest is to rust. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~