I'm trying to create a search for my website that sells products and it has to be in next week. when searching for an item it says i have a problem at line 8 . I've been trying all day to figure it out and aren't really getting anywhere. this is my code thanks in advance . oh and the include init at the top is just my connection to the database
x Turn on thread page Beta
Help with my php watch
- Thread Starter
- 04-05-2016 22:35
- 05-05-2016 18:13
Well ideally you should never post your code in a word document when you're trying to get people from the internet to read/help you with your code.
Use something like, http://pastebin.com/ next time. Here I made you one.
Anyway after looking at your code, it seems like your error is a scoping error. Inside your
isset if statement, you're only declaring the $productName variable there. You should declare it outside your if statement.