JoshFoster Posted September 23, 2012 Report Share Posted September 23, 2012 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: My code: Result: Thank you for your help. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted September 23, 2012 Report Share Posted September 23, 2012 I would suggest switching out this line (about line 3?: $my_rows; for this: $my_rows = ''; I think that should take care of the error. Quote Link to comment 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.
Note: Your post will require moderator approval before it will be visible.