Stevis2002 Posted November 25, 2010 Author Share Posted November 25, 2010 Well, I seem to have given myself one in the process. LOL. Shouldn't have been as complicated as I managed to make it, but what can ya do? Has your headache gone enough to help me with multiple image uploads yet? I cannot work out where to put the loop Quote Link to comment https://forums.phpfreaks.com/topic/219624-what-must-be-a-simple-answerjust-not-for-me/page/2/#findComment-1139663 Share on other sites More sharing options...
Anti-Moronic Posted November 25, 2010 Share Posted November 25, 2010 2. How do you get to know about all of these arrays? I look at php.net and others but i can never get anything to stick in my head. I can learn by being shown, but never out of a 'book' as such Reading is one way. You might also try: -) listening to php podcasts -) watching php videos You can get a few decent podcasts on itunes for free which I've enjoyed a lot when I'm away from my computer. You can also get some videos on there too (also for free). Aside from that, Linda.com has tons of php vids which will definitely help. If you are talking about learning specific areas of php - like arrays, then sadly you're going to have to read tutorials and documentation. Don't forget, always be testing what you learn. Nothing can compensate for practice. Quote Link to comment https://forums.phpfreaks.com/topic/219624-what-must-be-a-simple-answerjust-not-for-me/page/2/#findComment-1139668 Share on other sites More sharing options...
PFMaBiSmAd Posted November 26, 2010 Share Posted November 26, 2010 Oh wow. Sorry to be blunt, but the check_input() function should not be responsible for putting the single-quotes (part of the sql syntax) around strings. Doing so creates a bunch of special case conditions (such as the $imgname variable) and prevents you from directly doing simple things like using the LIKE comparison with wild-card characters in a query. The only place sql syntax belongs is in the query string. See this recent thread where using the DreamWeaver function that does the same with single-quotes prevented a coder from writing the query he wanted - http://www.phpfreaks.com/forums/php-coding-help/help-adjusting-a-like-statement/ Quote Link to comment https://forums.phpfreaks.com/topic/219624-what-must-be-a-simple-answerjust-not-for-me/page/2/#findComment-1139988 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.