Jump to content

Undefined Variable


JoshFoster

Recommended Posts

Hello,

 

I recently downloaded the web development tutorial package and have been going through the videos one-by-one and learning a lot. Right now I'm at the video "07_sql-in-php-select-statements" in the MySQL Basics folder. The video shows how to get information from a database, store it into an array and display it on screen.

 

For some reason I keep getting an "undefined variable notice" when I'm writing practice code myself. I'm not sure why this is happening considering the fact that I am following the tutorial pretty much verbatim.

 

 

Stefan's code in the video:

01_zps55f235ac.jpg

 

My code:

02_zpsd4b425b3.jpg

 

Result:

03_zps94453b0b.jpg

 

Thank you for your help.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...