Jump to content

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/144667-trace-in-php/#findComment-759126
Share on other sites

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]

Link to comment
https://forums.phpfreaks.com/topic/144667-trace-in-php/#findComment-759215
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/144667-trace-in-php/#findComment-759671
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.