close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Help me in Showing regions

Thread began 7/21/2011 2:41 pm by Kumel | Last modified 7/22/2011 3:03 pm by Ray Borduin | 1362 views | 10 replies |

Kumel

Help me in Showing regions

I have 2 pages send.php & show.php

In send.php user's upload thr picture & the pict get upload in show.php page using php codes.. i wanna use dat codes itself don wanna change it.. (i did it myself cos its perfect for me to use it) so al i wanna is when a user goes to show.php without uploading a picture den some error displays in dat show.php region where picture is supposed to be displayed.. So please temme wt can i do to display dat region only when som1 upload da file from send.php page.. please help me some1 .. ASAP

Sign in to reply to this post

Ray BorduinWebAssist

You would probably want to store a session variable when the image is uploaded and then use that session variable to determine whether to display the error or not.

Sign in to reply to this post

Kumel

Please Help me how to we exatly do dat.. i have stored da session variables n al.. but den how do we display da region after image is uploaded?

When som1 has not upload da image den when they go to show.php they get error lik -
Warning: [function.scandir]: The system cannot find the path specified. (code: 3) in C:\xampp\htdocs\omg\images.php on line 314


when da user upload da snap den they can c da image in thr directory...
The images get shown from thr directory n thr images get uploaded to dr directory..

so whn user hasnt upload the snap den it shows an error as given above.. please temme how extly to do to show region..

Sign in to reply to this post

Ray BorduinWebAssist

You could use file_exists() to check if the file exists instead of using a session variable. Upload a copy of the page you are working on and I can be more specific with my help.

Sign in to reply to this post

Kumel

thr u go.. i have already written file_exist rule.. but i shwing some error pleease help

Attached Files
images.zip
Sign in to reply to this post

Ray BorduinWebAssist

It looks like you put your file exists check on line 330 but you would have to put it around the code that causes the error on line 314.

Sign in to reply to this post

Kumel

Can you edit me n gimme da file..? please.. i m not able to find solutions...

Sign in to reply to this post

Ray BorduinWebAssist

To get direct help on writing code for you that isn't supported through this forum. You would have to sign up for a premiere support incident and schedule a phone call. I'll do my best to teach you how to fish here, but if you want me to catch the fish for you... that is another service.

The error you are seeing includes a line number. If you put an if statement around the code generating the error that checks to see if the file exists you can avoid that error and replace it with your own customized message. It looks like you are on the right track with what you have done you just haven't done it in the right place.

Sign in to reply to this post

Ray BorduinWebAssist

I'll try to help more... delete line 332, cut lines 329 through 331 and paste them on line 314. If you need more help you'll have to pay for a premium support ticket.

Sign in to reply to this post

Kumel

Please can you place da php code in proper place (i.e file_exist) pleaseeeeeeee

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...