Jump to content
Larry Ullman's Book Forums

Undefined Index: Description


Recommended Posts

Hi Larry,

When I click the 'Sales Items' link on the home page, I get the following error:

Current Sale Items

An error occurred in script '/Applications/MAMP/htdocs/views/list_sales.html' on line 29:
Undefined index: description
Array

(

    [0] => Array

        (

            [file] => /Applications/MAMP/htdocs/views/list_sales.html

          

 

1) Can you tell me why I am getting this error?

2) Can you tell me how to resolve this error?

 

Thank you

regards

 

 

 

Link to comment
Share on other sites

You're getting this error because the $row variable doesn't have an element indexed at "description". $row comes from the stored procedure, so either there's likely a flaw in your stored procedure definition.

Link to comment
Share on other sites

Hi Larry,

I found the error.  Thanks for your response!

 

Also Larry, could you possibly answer my foreign key question in my earlier post because I still don't understand your interpretation of how you made the joins between the foreign key and parent table, without explicitly declaring the connection in your sql script.

 

Thank you!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...