Jump to content

Recommended Posts

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

 

 

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.

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/

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.