deemurphy Posted February 10, 2009 Share Posted February 10, 2009 Is there a way to run a trace in php so I can make sure the variables are being pasted? Thank you LadyDee Quote Link to comment https://forums.phpfreaks.com/topic/144667-trace-in-php/ Share on other sites More sharing options...
kenrbnsn Posted February 10, 2009 Share Posted February 10, 2009 Not enough information for a meaningful answer. Please explain your question better. Ken Quote Link to comment https://forums.phpfreaks.com/topic/144667-trace-in-php/#findComment-759117 Share on other sites More sharing options...
revraz Posted February 10, 2009 Share Posted February 10, 2009 Echo them during troubleshooting? Quote Link to comment https://forums.phpfreaks.com/topic/144667-trace-in-php/#findComment-759119 Share on other sites More sharing options...
sdi126 Posted February 10, 2009 Share Posted February 10, 2009 PHP does not have tracing built in like ASP.NET does Quote Link to comment https://forums.phpfreaks.com/topic/144667-trace-in-php/#findComment-759120 Share on other sites More sharing options...
premiso Posted February 10, 2009 Share Posted February 10, 2009 As sdi said, it is not like .NET However, there are some "debuggers" that check syntax etc before you run a script: http://www.zend.com/en/community/pdt Eclipse with the PHP Plugin is a great debugger, it does show you possible errors etc. Quote Link to comment https://forums.phpfreaks.com/topic/144667-trace-in-php/#findComment-759126 Share on other sites More sharing options...
deemurphy Posted February 10, 2009 Author Share Posted February 10, 2009 I am using a form to get some information, I can upload the two forms, the build_breakroom is changing because I created the snacktype.php Mybe viewing these two pages can help, after requesting from snacktype and other other options when the build_breakroom comes back up I want the options that were picked shown. Thank you LadyDee [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/144667-trace-in-php/#findComment-759215 Share on other sites More sharing options...
deemurphy Posted February 11, 2009 Author Share Posted February 11, 2009 Could some one please help with the two scripts I uploaded. Thank you LadyDee Quote Link to comment https://forums.phpfreaks.com/topic/144667-trace-in-php/#findComment-759615 Share on other sites More sharing options...
kenrbnsn Posted February 11, 2009 Share Posted February 11, 2009 People don't usually download scripts here. The requester usually posts the code between tags. Ken Quote Link to comment https://forums.phpfreaks.com/topic/144667-trace-in-php/#findComment-759660 Share on other sites More sharing options...
redarrow Posted February 11, 2009 Share Posted February 11, 2009 Please show your code of the two pages, and explain in detail the problem you got. Quote Link to comment https://forums.phpfreaks.com/topic/144667-trace-in-php/#findComment-759663 Share on other sites More sharing options...
deemurphy Posted February 11, 2009 Author Share Posted February 11, 2009 I am using the following code in about eight different pages, like snacks, food, drinks, coffee, etc: $category_id= $row["category_id"]; $subCategoryid= $row["subCategory_id"]; $subCategoryName= $row["subCategoryName"]; I want to pass this information to another script everytime the user goes to it so they know what they have choosen. Here is the code from it: $category_id = $_POST["category_id"]; if(strlen($category_id)>0) { foreach ($_POST['category_id'] as $category_id) { if ($category_id == "1") { $_SESSION['snack'] = ""; later I do: <? if ($cnt != 0) { echo " $cnt Items Selected "; } else { echo "No Item is Available"; }?></span> I keep getting no Item is available. Thanks for your assistance. Sorry about the upload, have not ask for help in a long time. If it can be removed please do so. Thank you LadyDee Quote Link to comment https://forums.phpfreaks.com/topic/144667-trace-in-php/#findComment-759671 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.