----- Original Message ----- From: "raquibul islam" > Thanks for ur help but > "Parse error: syntax error, unexpected '{', expecting '(' in C:\Program > Files\xampp\htdocs\pic\index.php on line 11" > > will u please give me a fine(bug free) example?
Hi Raquibul, The example I posted was a example I had working, but never took it any further. It's not complete in any way. Most examples won't include the creation of the table and opening a database, which needs passwords etc. You need to create the table first. Do you know how to do this? The example didn't include opening the database, have you got a database already created? Are you testing this on your computer or your server? Also, examples don't usually include checking users inputs. Protection can sometimes be larger than the main program. If you're going to allow joe public to upload images to your server, you'll need to check that it is an image that is being uploaded, and not something nasty. I don't know your level of experience in php, so these questions may be irrelevate. I'm still learning myself, and probably will be for some time yet <grin>. Regards, Bob.