close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error in UE4

Thread began 11/19/2011 3:40 am by Kumel | Last modified 11/21/2011 2:03 pm by Kumel | 1144 views | 8 replies |

Kumel

Problem in UE4

I created new DATASSIST PAGES & also inserted Universal Email into it to upload images & etc. Images are stored through file names in DB & then using Img placeholder the image is shown on result pages & etc.. So I created a new DB called , uploads. It has UserID , UploadID, File name, Status & etc.. So after inserting the dataassist wizard pages, on result page it displays the entire DB entries.. But i want to see only Logged in User's DB.. May be like filtering Logged in UserID & from upload DB, filtering UserID then it must show only his/her's uploads..

So please help me on this..

Sign in to reply to this post

Kumel

This post has been deleted.

iansheldon422428

When you user logs in are you storing the unique ID for the user in a session variable?

What you need to do is either update your Recordset Select statement to only select records where the UserID = the session that contains the user ID, or apply the Data Assist Search Server behaviour and select to filter the User ID field by the Session Variable.

Cheers

Sign in to reply to this post

Kumel

OK now that was easily understood.
I have a page where there is a img tag, & img value is stored in DB & using img tag it displays the img linking from DB, code used is->
<img src="snaps/thumbs/<?php echo($row_WADAuploads['Img']); ?>.jpg" alt="" name="Img" />

So when i apply show region it still shows the small img tag thing.. so how do we hide that when DB is empty in IMG FIELD. (database) please tell me how do we use show region?

Sign in to reply to this post

Jason ByrnesWebAssist

put an if statement around the image tag:

php:
<?php if($row_WADAuploads['Img'] ! = "") { ?>

<img  src="snaps/thumbs/<?php echo($row_WADAuploads['Img']); ?>.jpg" alt="" name="Img" />
<?php ?>




the if statement checks to make sure the Img column in the database is not blank.

Sign in to reply to this post

Kumel

After adding that even if the value is there in DB, its not shown...

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of your page please

Sign in to reply to this post

Kumel

there u go.

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

Jason ByrnesWebAssist

you have changed the code around.

i am assuming this is the line giving you thje probelm?

php:
<?php if($row_WADAuploads['AniSnapImg'] = "") { ?> 

<img  src="snaps/thumbs/<?php echo($row_WADAuploads['AniSnapImg']); ?>.jpg" alt="" name="Img" /> 
<?php ?>



this is not correct syntax for the if statment. using this:
<?php if($row_WADAuploads['AniSnapImg'] = "") { ?>


you are setting the value of the AniSnapImg column to be ""

it should be:
<?php if($row_WADAuploads['AniSnapImg'] != "") { ?>

to check if the value of the AniSnapImg column is not equal to ""

Sign in to reply to this post

Kumel

Oh!! Oops!! sorry!! anyways thnks..
Please help me on this ---> showthread.php?t=23754

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...